mirror of
https://github.com/git/git.git
synced 2026-01-12 05:43:12 +09:00
Meta/Reintegrate: need to override GIT_EDITOR
The user may have his own GIT_EDITOR and overriding EDITOR would not help making the script non-interactive.
This commit is contained in:
parent
e0ab1fb4aa
commit
878a985a8f
@ -116,7 +116,7 @@ no)
|
||||
git rerere remaining
|
||||
return 1
|
||||
else
|
||||
EDITOR=: git commit --no-verify
|
||||
GIT_EDITOR=: git commit --no-verify
|
||||
echo "Accepted previous resolution"
|
||||
return 0
|
||||
fi
|
||||
@ -170,7 +170,7 @@ no)
|
||||
|
||||
rebuild=$(git config "branch.$branch.rebuild" || :)
|
||||
|
||||
EDITOR=: git merge $rebuild $accept_rerere --edit "$branch" ||
|
||||
GIT_EDITOR=: git merge $rebuild $accept_rerere --edit "$branch" ||
|
||||
accept_rerere ||
|
||||
exit
|
||||
|
||||
@ -187,7 +187,7 @@ no)
|
||||
echo >&2 "Fixing up the merge"
|
||||
git cherry-pick --no-commit "refs/merge-fix/$branch" &&
|
||||
git diff --stat HEAD &&
|
||||
EDITOR=: git commit --amend -a || exit
|
||||
GIT_EDITOR=: git commit --amend -a || exit
|
||||
fi
|
||||
;;
|
||||
pick" "*)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user