Re: [PATCH] Contribute a fairly paranoid update hook
From: Shawn O. Pearce <hidden>
Date: 2016-06-15 22:43:06
Junio C Hamano [off-list ref] wrote:
"Shawn O. Pearce" [off-list ref] writes:quoted
+$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.