diff --git a/tools/op.sh b/tools/op.sh index 849fd0bff6..0166b0d854 100755 --- a/tools/op.sh +++ b/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