summaryrefslogtreecommitdiff
path: root/templates/hooks--update
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <junkio@cox.net>2007-03-23 17:38:22 -0700
committerLibravatar Junio C Hamano <junkio@cox.net>2007-03-23 23:38:04 -0700
commit1c2c6112a4bf655faa768ddfca067945edf2809e (patch)
tree985973c2d5ac3611db6e25f702eecacf7cb41939 /templates/hooks--update
parentt6004: add a bit more path optimization test. (diff)
parentMerge branch 'maint' (diff)
downloadtgif-1c2c6112a4bf655faa768ddfca067945edf2809e.tar.xz
Merge branch 'master' into jc/bisect
This is to merge in the fix for path-limited bisection from the 'master' branch.
Diffstat (limited to 'templates/hooks--update')
-rw-r--r--templates/hooks--update6
1 files changed, 6 insertions, 0 deletions
diff --git a/templates/hooks--update b/templates/hooks--update
index 8f6c4fea24..1a60773890 100644
--- a/templates/hooks--update
+++ b/templates/hooks--update
@@ -56,6 +56,12 @@ recipients=$(git-repo-config hooks.mailinglist)
announcerecipients=$(git-repo-config hooks.announcelist)
allowunannotated=$(git-repo-config --bool hooks.allowunannotated)
+# check for no 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
+fi
+
# --- Check types
newrev_type=$(git-cat-file -t $newrev)