* [PATCH] update hook: redirect _both_ diagnostic lines to stderr upon tag failure
@ 2006-12-28 15:05 Jim Meyering
2006-12-28 22:14 ` Junio C Hamano
0 siblings, 1 reply; 2+ messages in thread
From: Jim Meyering @ 2006-12-28 15:05 UTC (permalink / raw)
To: git
Otherwise, sending the diagnostic to stdout would provoke a protocol failure.
Signed-off-by: Jim Meyering <jim@meyering.net>
---
templates/hooks--update | 2 +-
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 @@ # Remove this code to treat dumb tags th
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
--
1.4.2.GIT
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] update hook: redirect _both_ diagnostic lines to stderr upon tag failure
2006-12-28 15:05 [PATCH] update hook: redirect _both_ diagnostic lines to stderr upon tag failure Jim Meyering
@ 2006-12-28 22:14 ` Junio C Hamano
0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2006-12-28 22:14 UTC (permalink / raw)
To: Jim Meyering; +Cc: git
Jim Meyering <jim@meyering.net> writes:
> Otherwise, sending the diagnostic to stdout would provoke a protocol failure.
Very true; thanks for the patch.
However, I suspect that we'd want to prevent this by redirecting
on the caller side, so that the hook writers do not have to
worry about the issue. I haven't looked at the code that runs
the hook for some time but we should be able to do that...
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-12-28 22:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-28 15:05 [PATCH] update hook: redirect _both_ diagnostic lines to stderr upon tag failure Jim Meyering
2006-12-28 22:14 ` Junio C Hamano
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).