X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=edit-description;h=d378202b89df2d2b9ec93ebe3ac1f1e4fbcfe58f;hb=9a73fd795453b874efe7da629d6954ba05774503;hp=3311bb9cd50269698547a2757e8e2940c2eccd14;hpb=472be778aa9f5725f3a7757baa5c791b32182f2c;p=git-scripts.git diff --git a/edit-description b/edit-description index 3311bb9..d378202 100755 --- a/edit-description +++ b/edit-description @@ -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 +fi