#! /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