mirror of
https://github.com/tomasriveral/Nix-Git-Cherry-Picker.git
synced 2026-10-10 17:02:58 +02:00
replace: --force-with-lease by --force
This commit is contained in:
1 parent
6a0c9f4d01
commit
2830e32498
1 file changed
+2
-2
@@ -82,7 +82,7 @@ if [[ "$1" == "pick" ]]; then
|
||||
fi
|
||||
fi
|
||||
done
|
||||
git -C "$nixConfigPath" push --force-with-lease origin "$remoteBranch"
|
||||
git -C "$nixConfigPath" push --force origin "$remoteBranch"
|
||||
git -C "$nixConfigPath" checkout "$localBranch"
|
||||
elif [[ "$1" == "pull" ]]; then
|
||||
gitStatus=$(git -C "$nixConfigPath" status --porcelain)
|
||||
@@ -113,7 +113,7 @@ elif [[ "$1" == "pull" ]]; then
|
||||
echo "Pull successful"
|
||||
fi
|
||||
fi
|
||||
git -C "$nixConfigPath" push --force-with-lease origin "$localBranch"
|
||||
git -C "$nixConfigPath" push --force origin "$localBranch"
|
||||
else
|
||||
echo "Invalid argument. Please run ngcp --help"
|
||||
exit
|
||||
|
||||
Reference in new issue
Block a user