]> git.phdru.name Git - git-scripts.git/blobdiff - edit-description
Feat(submodules/remove): Add option `-c`
[git-scripts.git] / edit-description
index 547b2480ba2af032bd4999963ced79270bbedb5a..d378202b89df2d2b9ec93ebe3ac1f1e4fbcfe58f 100755 (executable)
@@ -1,5 +1,8 @@
 #! /bin/sh
 
-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'
+g="`git rev-parse --git-dir`" &&
+
+if [ "`cat $g/description`" = "Unnamed repository; edit this file 'description' to name the repository." ]
+then
+   exec `git var GIT_EDITOR` "$g"/description
+fi