about summary refs log tree commit diff
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-02-23 17:24:58 +0100
committerChristian Neukirchen <chneukirchen@gmail.com>2016-02-23 17:24:58 +0100
commit62862e30c107f4058d64900e4f32755108fba7a8 (patch)
tree38943730b2029a73d5c53f3509570bb529312777
parent8ab3d4890d8ef13279763b8f107586015f1c2402 (diff)
downloadgit-merge-pr-62862e30c107f4058d64900e4f32755108fba7a8.tar.gz
git-merge-pr-62862e30c107f4058d64900e4f32755108fba7a8.tar.xz
git-merge-pr-62862e30c107f4058d64900e4f32755108fba7a8.zip
Use $GIT_EDITOR which has highest preference
-rwxr-xr-xgit-merge-pr2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-merge-pr b/git-merge-pr
index 1d72442..bcba973 100755
--- a/git-merge-pr
+++ b/git-merge-pr
@@ -27,7 +27,7 @@ if [ "$(git config --bool --get merge-pr.autoclose)" = false ]; then
 fi
 
 # Rewrite last commit message to close GitHub issue.
-EDITOR='sh -c '\''git -c trailer.closes.ifExists=replace interpret-trailers \
+GIT_EDITOR='sh -c '\''git -c trailer.closes.ifExists=replace interpret-trailers \
 		--trailer "Closes: #'"$PR"' [via git-merge-pr]" "$1" > "$1-" &&
 	mv "$1-" "$1"'\'' -' \
 git commit --quiet --amend