@matheusbsbs / matheus-bagliano / commits / b81ba57124
Fork 0

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>

Jim Meyering committed Dec 28, 2006 at 16:05 UTC b81ba571242a1b64b4fbda215ea38dd062f2b05f
1 file changed +1 -1
templates/hooks--update
+1 -1
@@ -19,7 +19,7 @@ ref_type=$(git cat-file -t "$3")
19 case "$1","$ref_type" in
20 refs/tags/*,commit)
21 echo "*** Un-annotated tags are not allowed in this repo" >&2
22 - echo "*** Use 'git tag [ -a | -s ]' for tags you want to propagate."
22 + echo "*** Use 'git tag [ -a | -s ]' for tags you want to propagate." >&2
23 exit 1;;
24 refs/tags/*,tag)
25 echo "### Pushing version '${1##refs/tags/}' to the masses" >&2