Skip to content

Commit 6eb3061

Browse files
committed
try B
1 parent a72f90d commit 6eb3061

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/update.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ else
6262
fi
6363

6464
git worktree remove -f "$BKG_INDEX" 2>/dev/null
65-
git worktree add -f "$BKG_INDEX" "$BKG_INDEX"
65+
git worktree add --track -f -B "$BKG_INDEX" "$BKG_INDEX" "origin/$BKG_INDEX"
6666
[[ -d "$BKG_INDEX" || ! -d "$BKG_INDEX".bak ]] || git worktree move "$BKG_INDEX".bak "$BKG_INDEX"
6767
pushd "$BKG_INDEX" || exit 1
6868
git reset --hard origin/"$BKG_INDEX"

0 commit comments

Comments
 (0)