Skip to content

Commit

Permalink
op: also fix resetting
Browse files Browse the repository at this point in the history
  • Loading branch information
adeebshihadeh committed Dec 8, 2024
1 parent e23b61f commit 9eccd9a
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 @@ -329,7 +329,7 @@ function op_switch() {

git fetch "$REMOTE" "$BRANCH"
git checkout -f --recurse-submodules "$BRANCH"
git reset --hard "$BRANCH"
git reset --hard "${REMOTE}/${BRANCH}"
git clean -df
git submodule update --init --recursive
git submodule foreach git reset --hard
Expand Down

0 comments on commit 9eccd9a

Please sign in to comment.