op.sh: fix switch on fresh install

sshane-patch-1
Adeeb Shihadeh 2 weeks ago
parent 3e2549f2b8
commit 9fcac06297
  1. 1
      tools/op.sh

@ -365,6 +365,7 @@ function op_switch() {
fi
BRANCH="$1"
git config --replace-all remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
git fetch "$REMOTE" "$BRANCH"
git checkout -f FETCH_HEAD
git checkout -B "$BRANCH" --track "$REMOTE"/"$BRANCH"

Loading…
Cancel
Save