op: also fix resetting

pull/34180/head
Adeeb Shihadeh 5 months ago
parent e23b61f0b6
commit 9eccd9ad1e
  1. 2
      tools/op.sh

@ -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

Loading…
Cancel
Save