Skip to content

Commit 68f43d0

Browse files
committed
scripts: git switch without reseting existing branch
1 parent c900a82 commit 68f43d0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

scripts/clone-pull-build-run.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@ clone_checkout_pull() {
115115
build_reason="tag: $tag"
116116
( logx "checkout $tag"; git checkout "$tag" )
117117
else
118-
( logx "switch $branch"; git switch -C "$branch" origin/"$branch" )
118+
# logx "switch $branch"; git switch -C "$branch" origin/"$branch" )
119+
( logx "switch $branch"; git switch "$branch" )
119120

120121
local="$( git rev-parse HEAD)"
121122
remote="$(git rev-parse "@{upstream}")"

0 commit comments

Comments
 (0)