summaryrefslogtreecommitdiff
path: root/templates/hooks--update
diff options
context:
space:
mode:
authorGerrit Pape <pape@smarden.org>2007-04-16 08:30:42 (GMT)
committerJunio C Hamano <junkio@cox.net>2007-04-16 08:35:33 (GMT)
commit5946d88a349407f2830b4d186201076b80a7cce4 (patch)
tree835eda8af2eb87fead5fd1a6eaf8923d91c177be /templates/hooks--update
parent635f4a30f0f73fcd3ed29c8d70be334689cc4082 (diff)
downloadgit-5946d88a349407f2830b4d186201076b80a7cce4.zip
git-5946d88a349407f2830b4d186201076b80a7cce4.tar.gz
git-5946d88a349407f2830b4d186201076b80a7cce4.tar.bz2
variable $projectdesc needs to be set before checking against unchanged default.
Signed-off-by: Gerrit Pape <pape@smarden.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'templates/hooks--update')
-rw-r--r--templates/hooks--update1
1 files changed, 1 insertions, 0 deletions
diff --git a/templates/hooks--update b/templates/hooks--update
index 0ff0330..0dcb1ad 100644
--- a/templates/hooks--update
+++ b/templates/hooks--update
@@ -34,6 +34,7 @@ fi
allowunannotated=$(git-repo-config --bool hooks.allowunannotated)
# check for no description
+projectdesc=$(sed -e '1p' "$GIT_DIR/description")
if [ -z "$projectdesc" -o "$projectdesc" = "Unnamed repository; edit this file to name it for gitweb" ]; then
echo "*** Project description file hasn't been set" >&2
exit 1