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

Re: [PATCH] Contribute a fairly paranoid update hook

From
Shawn O. Pearce <spearce@spearce.org>
Date
Apr 20, 2007, 14:59 UTC
Message-ID
<20070420145923.GB17480@spearce.org>
In-Reply-To
<7vmz131fzz.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano <junkio@cox.net> wrote:
Show 5 quoted lines
> "Shawn O. Pearce" <spearce@spearce.org> writes:
> 
> > +$ENV{PATH}     = '/opt/git/bin';
> 
> This caught my attention ;-).

What, is replacing PATH in the hook really all that paranoid? Its a perfectly reasonable thing to do. ;-)

Someday I'll post the patch to receive-pack that I use to run it setuid. That thing is also fairly paranoid. I won't submit it for application to git.git though, as I don't think it really belongs in the main receive-pack code. So it might be a patch file for contrib, or just an article in the mailing list archives that people can link to.

I also recently hacked some semi-useful features into gitweb.cgi. I need to finish those for our local use, and then see if I can extract them enough to make them publicly available. gitweb.cgi is probably going to become a cornerstone of our main development and testing workflow, especially for managers and testers who don't want (or really need) full repositories on their deskstops.

-- 
Shawn.
Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 6 in “Contribute a fairly paranoid update hook”
  1. Contribute a fairly paranoid update hookShawn O. Pearce, Apr 20, 2007
  2. Junio C HamanoApr 20, 2007
  3. Shawn O. PearceApr 20, 2007
  4. Junio C HamanoApr 20, 2007
  5. Jakub NarebskiApr 21, 2007
  6. Shawn O. PearceApr 21, 2007

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.