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 5, 2005, 22:01 UTC
Message-ID
<Pine.LNX.4.64.0512051651050.25300@iabervon.org>
In-Reply-To
<Pine.LNX.4.63.0512052138560.6554@wbgn013.biozentrum.uni-wuerzburg.de>
On Mon, 5 Dec 2005, Johannes Schindelin wrote:
Show 26 quoted lines
> Hi,
> 
> On Mon, 5 Dec 2005, Daniel Barkalow wrote:
> 
> > I have the following post-update hook:
> > 
> > -----
> > #!/bin/sh
> > 
> > unset GIT_DIR
> > cd /home/barkalow/auto-working/web
> > if ! git pull /home/barkalow/git/web.git/
> > then
> >   exit 1  
> > fi
> > make
> > -----
> > 
> > >From that "git pull", I'm getting:
> > 
> > /home/barkalow/bin/git-pull: line 108: 30608 Broken pipe      git-merge $no_summary $no_commit $strategy_args "$merge_name" HEAD $merge_head
> > 
> > It works fine when pushing over ssh,
> 
> Maybe it runs as a different user? (Sorry if this sounds dumb, but that's 
> exactly the kind of solution I usually find after *days*.)

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.

The thing that confuses me is that it works when run from ssh or directly, but not when run from a local push. I'd expect the two that work to be most different.

	-Daniel
*This .sig left intentionally blank*
Previous: Johannes SchindelinNext: Junio C Hamano
Message 3 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.