summaryrefslogtreecommitdiff
path: root/templates/hooks--update
diff options
context:
space:
mode:
authorGerrit Pape <pape@smarden.org>2007-03-02 12:20:10 (GMT)
committerJunio C Hamano <junkio@cox.net>2007-03-02 23:11:52 (GMT)
commitb8ac23bcf82e67ccc56b90217c68d7a46b4b2bbc (patch)
tree04da6957ccd79dc64fa7d6c99780db4fac20f09e /templates/hooks--update
parenteecc8367f4eaafc8449fc08c4e33f3f8ac474469 (diff)
downloadgit-b8ac23bcf82e67ccc56b90217c68d7a46b4b2bbc.zip
git-b8ac23bcf82e67ccc56b90217c68d7a46b4b2bbc.tar.gz
git-b8ac23bcf82e67ccc56b90217c68d7a46b4b2bbc.tar.bz2
Fix quoting in update hook template
By default allowunannotated is unset in the repo config, hence $allowunannotated is empty, and must be quoted to not break the syntax. 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--update2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/hooks--update b/templates/hooks--update
index e8c536f..555bd5f 100644
--- a/templates/hooks--update
+++ b/templates/hooks--update
@@ -64,7 +64,7 @@ case "$refname","$newrev_type" in
# un-annotated tag
refname_type="tag"
short_refname=${refname##refs/tags/}
- if [ $allowunannotated != "true" ]; then
+ if [ "$allowunannotated" != "true" ]; then
echo "*** The un-annotated tag, $short_refname is not allowed in this repository" >&2
echo "*** Use 'git tag [ -a | -s ]' for tags you want to propagate." >&2
exit 1