op: also fix resetting

This commit is contained in:
Adeeb Shihadeh
2024-12-07 18:47:55 -08:00
parent e23b61f0b6
commit 9eccd9ad1e
+1 -1
View File
@@ -329,7 +329,7 @@ function op_switch() {
git fetch "$REMOTE" "$BRANCH"
git checkout -f --recurse-submodules "$BRANCH"
git reset --hard "$BRANCH"
git reset --hard "${REMOTE}/${BRANCH}"
git clean -df
git submodule update --init --recursive
git submodule foreach git reset --hard