mirror of
https://github.com/neovim/neovim.git
synced 2025-10-25 20:07:09 +00:00
scripts/vim-patch.sh: do not git-reset on push failure (#6878)
This was added from the beginning to submit_pr in 775a16b0b, but I
cannot see why that is useful - in contrast, it will mess with the local
branch in case "origin" cannot be pushed to (i.e. when it points to
neovim/neovim itself).
This commit is contained in:
committed by
Justin M. Keyes
parent
9f534f338a
commit
6eb2bcd1a0
@@ -280,7 +280,7 @@ submit_pr() {
|
||||
local pr_message
|
||||
pr_message="$(printf '[RFC] vim-patch:%s\n\n%s\n' "${pr_title#,}" "${pr_body}")"
|
||||
|
||||
if [[ $push_first -ne 0 ]]; then
|
||||
if [[ $push_first -ne 0 ]]; then
|
||||
echo "Pushing to 'origin/${checked_out_branch}'."
|
||||
output="$(git push origin "${checked_out_branch}" 2>&1)" &&
|
||||
echo "✔ ${output}" ||
|
||||
|
||||
Reference in New Issue
Block a user