From 9fcac06297ebf9357d8b1fbf5a3ab573e9733190 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Thu, 28 Aug 2025 11:49:31 -0700 Subject: [PATCH] op.sh: fix switch on fresh install --- tools/op.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/op.sh b/tools/op.sh index e83b46b2d2..54ff8e97e9 100755 --- a/tools/op.sh +++ b/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"