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 a72f90d commit 6eb3061Copy full SHA for 6eb3061
src/test/update.sh
@@ -62,7 +62,7 @@ else
62
fi
63
64
git worktree remove -f "$BKG_INDEX" 2>/dev/null
65
-git worktree add -f "$BKG_INDEX" "$BKG_INDEX"
+git worktree add --track -f -B "$BKG_INDEX" "$BKG_INDEX" "origin/$BKG_INDEX"
66
[[ -d "$BKG_INDEX" || ! -d "$BKG_INDEX".bak ]] || git worktree move "$BKG_INDEX".bak "$BKG_INDEX"
67
pushd "$BKG_INDEX" || exit 1
68
git reset --hard origin/"$BKG_INDEX"
0 commit comments