about summary refs log tree commit diff
diff options
context:
space:
mode:
-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