mirror of
https://github.com/infiniteCable2/openpilot.git
synced 2026-08-23 01:13:44 +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