replace: --force-with-lease by --force

This commit is contained in:
2026-06-08 13:33:59 +02:00
parent 6a0c9f4d01
commit 2830e32498
+2 -2
View File
@@ -82,7 +82,7 @@ if [[ "$1" == "pick" ]]; then
fi fi
fi fi
done done
git -C "$nixConfigPath" push --force-with-lease origin "$remoteBranch" git -C "$nixConfigPath" push --force origin "$remoteBranch"
git -C "$nixConfigPath" checkout "$localBranch" git -C "$nixConfigPath" checkout "$localBranch"
elif [[ "$1" == "pull" ]]; then elif [[ "$1" == "pull" ]]; then
gitStatus=$(git -C "$nixConfigPath" status --porcelain) gitStatus=$(git -C "$nixConfigPath" status --porcelain)
@@ -113,7 +113,7 @@ elif [[ "$1" == "pull" ]]; then
echo "Pull successful" echo "Pull successful"
fi fi
fi fi
git -C "$nixConfigPath" push --force-with-lease origin "$localBranch" git -C "$nixConfigPath" push --force origin "$localBranch"
else else
echo "Invalid argument. Please run ngcp --help" echo "Invalid argument. Please run ngcp --help"
exit exit