From 3328845be18536e52b0032408646377071f15b02 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Wed, 11 Dec 2024 19:27:35 -0800 Subject: [PATCH] op/switch: fix ambiguous remote on checkout --- tools/op.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/op.sh b/tools/op.sh index 0166b0d85..4d352af5d 100755 --- a/tools/op.sh +++ b/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