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

Re: git-daemon: needs /root/.config/git/config?

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 4, 2013, 21:24 UTC
Message-ID
<7vk3m9603f.fsf@alter.siamese.dyndns.org>
In-Reply-To
<20130604210600.GA3271@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 24 quoted lines
> On Tue, Jun 04, 2013 at 12:10:25PM -0700, Jonathan Nieder wrote:
>
>> >> However, since changing user id and leaving $HOME is so common, there is
>> >> a patch under consideration to loosen the check only for the case of
>> >> EACCES on files in $HOME. That commit is 4698c8f (config: allow
>> >> inaccessible configuration under $HOME, 2013-04-12); it's not yet in any
>> >> released version of git, though.
>> [...]
>> > I've a PHP script in ~/public_html that runs git. Without the mentioned
>> > patch, the script bails out due to this error. This time it's Apache
>> > that gets me into trouble because at the time the PHP script and git
>> > run, $HOME is still /root, but the user identity is not root anymore.
>> > The patch is direly needed; without it, I need to use 'env
>> > HOME=/home/j6t /usr/local/bin/git' in my script.
>> 
>> I could be remembering wrong, but I thought it was not so much "under
>> consideration" as "accepted for 1.8.4".  I haven't heard any
>> compelling reasons not to apply it.
>> 
>> Would it would make sense against earlier releases as well?
>
> Yeah, I think it would. I only said "under consideration" because I saw
> that it was in "next" and not elsewhere, and did not hunt down the exact
> status in "What's Cooking".

Sorry about that; it is in 'master' but "What's cooking" for that pushout hasn't been published yet (the description of what I did yesterday will be rolled into today's issue together with the description of what I did today at the end of day).

Previous: Jeff KingNext: Ian Kumlien
Message 7 of 12 in “git-daemon: needs /root/.config/git/config?”
  1. Ian KumlienJun 4, 2013
  2. Jeff KingJun 4, 2013
  3. Johannes SixtJun 4, 2013
  4. Jonathan NiederJun 4, 2013
  5. Junio C HamanoJun 4, 2013
  6. Jeff KingJun 4, 2013
  7. Junio C HamanoJun 4, 2013
  8. Ian KumlienJun 5, 2013
  9. Andreas KreyJun 5, 2013
  10. Jeff KingJun 5, 2013
  11. Bernhard R. LinkJun 9, 2013
  12. Ian KumlienJun 10, 2013

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.