git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Weirdness with port-update hook and local push

From
Daniel Barkalow <barkalow@iabervon.org>
Date
Dec 6, 2005, 01:12 UTC
Message-ID
<Pine.LNX.4.64.0512051945330.25300@iabervon.org>
In-Reply-To
<Pine.LNX.4.63.0512052318290.3406@wbgn013.biozentrum.uni-wuerzburg.de>
On Mon, 5 Dec 2005, Johannes Schindelin wrote:
Show 9 quoted lines
> Hi,
> 
> On Mon, 5 Dec 2005, Daniel Barkalow wrote:
> 
> > I think it's an environment thing of some sort, most likely, but it can't 
> > be the user; nothing's setuid and I'm only one user.
> 
> Can you insert "env > /tmp/env.$$.out", execute both without and with ssh, 
> and compare?

Actually, "ls -l /proc/$$/fd" shows that stdin and stdout are sockets with ssh, pipes with local, and ttys when just running the script.

The hooks probably ought to be run with something different for stdin/stdout than the connection to the source of the data. /dev/null, maybe? Or a log file? Maybe dup stderr, which still seems to be going to the pusher's terminal?

	-Daniel
*This .sig left intentionally blank*
Previous: Junio C Hamano
Message 5 of 5 in “Weirdness with port-update hook and local push”
  1. Daniel BarkalowDec 5, 2005
  2. Johannes SchindelinDec 5, 2005
  3. Daniel BarkalowDec 5, 2005
  4. Junio C HamanoDec 5, 2005
  5. Daniel BarkalowDec 6, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.