summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorJohn Tapsell <johnflux@gmail.com>2009-02-19 07:36:00 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-03-04 08:56:52 (GMT)
commit28001d0873cfce1ad6a44f1c2deaf9388d953cc3 (patch)
treef3ba1492d679235da01034b41c62e7f49241d100 /templates
parent9f199b159580545c39716fd87038f8ff7cd0eace (diff)
downloadgit-28001d0873cfce1ad6a44f1c2deaf9388d953cc3.zip
git-28001d0873cfce1ad6a44f1c2deaf9388d953cc3.tar.gz
git-28001d0873cfce1ad6a44f1c2deaf9388d953cc3.tar.bz2
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>
Diffstat (limited to 'templates')
-rwxr-xr-xtemplates/hooks--update.sample6
-rw-r--r--templates/this--description2
2 files changed, 5 insertions, 3 deletions
diff --git a/templates/hooks--update.sample b/templates/hooks--update.sample
index 93c6055..a3f68ae 100755
--- a/templates/hooks--update.sample
+++ b/templates/hooks--update.sample
@@ -43,10 +43,12 @@ allowdeletetag=$(git config --bool hooks.allowdeletetag)
# check for no description
projectdesc=$(sed -e '1q' "$GIT_DIR/description")
-if [ -z "$projectdesc" -o "$projectdesc" = "Unnamed repository; edit this file to name it for gitweb." ]; then
+case "$projectdesc" in
+"Unnamed repository"* | "")
echo "*** Project description file hasn't been set" >&2
exit 1
-fi
+ ;;
+esac
# --- Check types
# if $newrev is 0000...0000, it's a commit to delete a ref.
diff --git a/templates/this--description b/templates/this--description
index c6f25e8..498b267 100644
--- a/templates/this--description
+++ b/templates/this--description
@@ -1 +1 @@
-Unnamed repository; edit this file to name it for gitweb.
+Unnamed repository; edit this file 'description' to name the repository.