Skip to content

Commit

Permalink
op: fix branch switching after force pushes
Browse files Browse the repository at this point in the history
  • Loading branch information
adeebshihadeh committed Dec 8, 2024
1 parent ae1e476 commit e23b61f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/op.sh
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ function op_switch() {
fi
BRANCH="$1"

git fetch "$REMOTE" "$BRANCH":"$BRANCH"
git fetch "$REMOTE" "$BRANCH"
git checkout -f --recurse-submodules "$BRANCH"
git reset --hard "$BRANCH"
git clean -df
Expand Down

0 comments on commit e23b61f

Please sign in to comment.