mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-09-29 02:43:47 +08:00
op/switch: fix ambiguous remote on checkout
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user