op/switch: fix ambiguous remote on checkout

pull/34217/head
Adeeb Shihadeh 5 months ago
parent 3a6db78601
commit 3328845be1
  1. 2
      tools/op.sh

@ -328,7 +328,7 @@ function op_switch() {
BRANCH="$1"
git fetch "$REMOTE" "$BRANCH"
git checkout -f --recurse-submodules "$BRANCH"
git checkout -f --recurse-submodules --track "$REMOTE"/"$BRANCH"
git reset --hard "${REMOTE}/${BRANCH}"
git clean -df
git submodule update --init --recursive

Loading…
Cancel
Save