Merge branch 'maint'
authorJunio C Hamano <junkio@cox.net>
Sat, 3 Mar 2007 00:57:53 +0000 (16:57 -0800)
committerJunio C Hamano <junkio@cox.net>
Sat, 3 Mar 2007 00:57:53 +0000 (16:57 -0800)
* maint:
Fix quoting in update hook template

templates/hooks--update
index 4af2fe8d9517f3be1a6cb526a62d12e1f2c70915..5b82b68e93980924befa9ecc99e099e77da27b5f 100644 (file)
@@ -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