summaryrefslogtreecommitdiff
path: root/templates/hooks--update
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2006-12-28 15:05:02 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-12-28 22:12:48 (GMT)
commitb81ba571242a1b64b4fbda215ea38dd062f2b05f (patch)
tree50858337e4718ba5d6f9b116c5f4444e32255dda /templates/hooks--update
parent5d6b151fdd0a9e41ba68b444760616da1a008433 (diff)
downloadgit-b81ba571242a1b64b4fbda215ea38dd062f2b05f.zip
git-b81ba571242a1b64b4fbda215ea38dd062f2b05f.tar.gz
git-b81ba571242a1b64b4fbda215ea38dd062f2b05f.tar.bz2
update hook: redirect _both_ diagnostic lines to stderr upon tag failure
Otherwise, sending the diagnostic to stdout would provoke a protocol failure. Signed-off-by: Jim Meyering <jim@meyering.net> 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 76d5ac2..9863a80 100644
--- a/templates/hooks--update
+++ b/templates/hooks--update
@@ -19,7 +19,7 @@ ref_type=$(git cat-file -t "$3")
case "$1","$ref_type" in
refs/tags/*,commit)
echo "*** Un-annotated tags are not allowed in this repo" >&2
- echo "*** Use 'git tag [ -a | -s ]' for tags you want to propagate."
+ echo "*** Use 'git tag [ -a | -s ]' for tags you want to propagate." >&2
exit 1;;
refs/tags/*,tag)
echo "### Pushing version '${1##refs/tags/}' to the masses" >&2