We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c35ac85 commit 4fc8532Copy full SHA for 4fc8532
scripts/001-binutils.sh
@@ -25,9 +25,9 @@ fi
25
if test ! -d "$REPO_FOLDER"; then
26
git clone --depth 1 -b "$REPO_REF" "$REPO_URL" "$REPO_FOLDER"
27
else
28
- git -C "$REPO_FOLDER" fetch origin
29
- git -C "$REPO_FOLDER" reset --hard "origin/$REPO_REF"
30
- git -C "$REPO_FOLDER" checkout "$REPO_REF"
+ git -C "$REPO_FOLDER" remote set-url origin "$REPO_URL"
+ git -C "$REPO_FOLDER" fetch origin "$REPO_REF" --depth=1
+ git -C "$REPO_FOLDER" checkout -f "$REPO_REF"
31
fi
32
33
cd "$REPO_FOLDER"
0 commit comments