Make sure injecting "Closes #X" into commit msg works
Change-Id: Ifbe07380db5c907e5bfb46798049c033d0e59ab4
diff --git a/bin/import_github_pull_requests b/bin/import_github_pull_requests
index f0f5477..5e00c14 100755
--- a/bin/import_github_pull_requests
+++ b/bin/import_github_pull_requests
@@ -59,7 +59,7 @@
if [ "$success" == "$GET_CI_STATUS_SUCCESS" ]; then
if git cherry-pick "$sha" > /dev/null 2> /dev/null; then
# add closes #<nr> to let github automatically close the PR and add change-id via hook
- EDITOR="echo 'Closes #${nr}' >> $1" git commit --amend
+ GIT_EDITOR="echo 'Closes #${nr}' >> $1" git commit --amend
else
git cherry-pick --skip
fi