Skip to content

Commit 8fd0f02

Browse files
committed
docker: fix fetch order in entrypoint script
Ensure that the origin fetch occurs after upstream fetch to maintain consistency in the git state before resetting to the target SHA. Signed-off-by: Chiho Sin <[email protected]>
1 parent eb40dc2 commit 8fd0f02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ JOBS=$(nproc)
1313
: "${BOARD:=}"
1414

1515
# Reset to the target SHA
16-
git fetch origin --tags --prune
1716
git fetch upstream --tags --prune
17+
git fetch origin --tags --prune
1818
git fetch "${REPO_REMOTE}" "${REPO_REF}"
1919
git reset --hard FETCH_HEAD
2020
git repack -d

0 commit comments

Comments
 (0)