Skip to content

Commit 7fa1bf4

Browse files
committed
please.sh update_vs_branch: use a anonymous branch for working
Or if you really like Git speak: use a detached HEAD for working. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent b7c8dc0 commit 7fa1bf4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

please.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1003,7 +1003,8 @@ update_vs_branch () { # [--worktree=<path>] [--remote=<remote>] [--branch=<branc
10031003
echo "vs/$branch was already rebased" >&2
10041004
exit 0
10051005
fi &&
1006-
git reset --hard refs/remotes/"$remote/$branch" &&
1006+
git reset --hard &&
1007+
git checkout --force refs/remotes/"$remote/$branch"^0 &&
10071008
make MSVC=1 vcxproj &&
10081009
git push "$remote" +HEAD:refs/heads/vs/"$branch" ||
10091010
die "Could not push vs/$branch\n") ||

0 commit comments

Comments
 (0)