]> git.phdru.name Git - git-scripts.git/blobdiff - edit-description
Use `git var GIT_EDITOR` to call editor
[git-scripts.git] / edit-description
index 547b2480ba2af032bd4999963ced79270bbedb5a..3311bb9cd50269698547a2757e8e2940c2eccd14 100755 (executable)
@@ -2,4 +2,4 @@
 
 exec "`dirname \"$0\"`"/do-all \
    'test "`cat $g/description`" = "Unnamed repository; edit this file '"'"description"'"' to name the repository." &&
-   "${VISUAL:-${EDITOR:-vi}}" "$g"/description < /dev/tty'
+   `git var GIT_EDITOR` "$g"/description < /dev/tty'