Re: git-daemon: needs /root/.config/git/config?
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Jun 4, 2013, 19:10 UTC
- Message-ID
- <20130604191025.GG28153@google.com>
- In-Reply-To
- <51AE3A88.2080203@kdbg.org>
Johannes Sixt wrote:
> Am 04.06.2013 18:08, schrieb Jeff King:
Show 5 quoted lines
>> 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.
[...]
Show 6 quoted lines
> 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?
Thanks, Jonathan