]> git.phdru.name Git - git-scripts.git/blobdiff - edit-description
Feat: Split scripts into 3: run in one repo, recursive, in all
[git-scripts.git] / edit-description
index 3311bb9cd50269698547a2757e8e2940c2eccd14..1e7605e817e6281e6811afc3d7cc942a1859c54b 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." &&
-   `git var GIT_EDITOR` "$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 < /dev/tty
+fi