Modify description file to say what this file is
A lot of people see this message for the first time on the gitweb interface, where there is no clue as to what 'this file' means. Signed-off-by: John Tapsell <johnflux@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
John Tapsell committed
Feb 19, 2009 at 07:36 UTC
28001d0873cfce1ad6a44f1c2deaf9388d953cc3
2 files changed
+5
-3
templates/hooks--update.sample
+4
-2
@@ -43,10 +43,12 @@ allowdeletetag=$(git config --bool hooks.allowdeletetag)
43
44
# check for no description
45
projectdesc=$(sed -e '1q' "$GIT_DIR/description")
46
-if [ -z "$projectdesc" -o "$projectdesc" = "Unnamed repository; edit this file to name it for gitweb." ]; then
46
+case "$projectdesc" in
47
+"Unnamed repository"* | "")
48
echo "*** Project description file hasn't been set" >&2
49
exit 1
49
-fi
50
+ ;;
51
+esac
52
53
# --- Check types
54
# if $newrev is 0000...0000, it's a commit to delete a ref.
templates/this--description
+1
-1
@@ -1 +1 @@
1
-Unnamed repository; edit this file to name it for gitweb.
1
+Unnamed repository; edit this file 'description' to name the repository.