Thread (17 messages) flat view 17 messages, 12 authors, 2016-06-15

Re: Git sideband hook output

From: Shawn O. Pearce <hidden>
Date: 2016-06-15 22:48:56

Scott Chacon [off-list ref] wrote:
Prior to 6d525d where Shawn made the receive-pack process send hook
output over side band #2, how did the hook output get sent to the
client?
It was sent over stderr, which was proxied down to the client by
the SSH daemon.
On older clients (before this commit) and on older servers,
the hook output just shows up without the 'remote:' prefix.
Because its echoed to the tty by the SSH client, without Git ever
seeing it.
After
this commit I get the 'remote:' prefix,
Now its being parsed out of the stream by the git client, using
the same code that displays the progress messages during clone/fetch.
which is kind of annoying.
Depends on your perspective.  Its nice to know that the messages
came from the server, rather than from your client.  :-)
Is
there a way to suppress this to get the old output format?
No.  Other than to have the hook not output anything at all.

-- 
Shawn.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help