mirror of
https://github.com/tomasriveral/Nix-Git-Cherry-Picker.git
synced 2026-08-11 18:28:40 +02:00
replace: --force-with-lease by --force
This commit is contained in:
@@ -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