X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=edit-description;h=1e7605e817e6281e6811afc3d7cc942a1859c54b;hb=bde260ddb033606e9c70830cca48c94962c08021;hp=547b2480ba2af032bd4999963ced79270bbedb5a;hpb=b654a68370a9f85db9e898521bd2925e62f578d7;p=git-scripts.git diff --git a/edit-description b/edit-description index 547b248..1e7605e 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." && - "${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 < /dev/tty +fi