On 05/21/2018 11:07 PM, Matt Darfeuille wrote: > On 3/4/2018 11:12 PM, Tom Eastep wrote: >> On 03/04/2018 12:10 PM, Matt Darfeuille wrote: >>> On 3/4/2018 7:51 PM, Tom Eastep wrote: >>>> Given the recent Sourceforge instability, I have made my personal >>>> repository available in read-only mode: >>>> >>>> git://git.shorewall.org/shorewall/code >>>> git://git.shorewall.org/shorewall/release >>>> git://git.shorewall.org/shorewall/tools >>>> git://git.shorewall.org/shorewall/web >>>> >>> >>> Thank you Tom for making your personel repository available. >>> I get one warning though: >>> >>> "remote: warning: unable to access '/root/.config/git/attributes': >>> Permission denied >>> remote: Counting objects: 4, done. >>> remote: Compressing objects: 100% (4/4), done. >>> remote: Total 4 (delta 2), reused 2 (delta 0) >>> Unpacking objects: 100% (4/4), done. >>> From git://git.shorewall.org/shorewall/tools >>> 859d5f44..a2a46af2 master -> shorewall/master" >>> >>> -Matt >>> >> >> Near as I can tell, it's a bug in the way that git-daemon-sysvinit >> starts the server under a different user ID. >> > > The way I eliminate the above warning is by doing the following: > > $ HOME=/home/matt git daemon -user=matt ... > > $ ls -l /home/matt/.config/git/attributes > -rw-r--r-- 1 matt matt 0 May 19 21:44 /home/matt/.config/git/attributes > > > From: > > https://git-scm.com/docs/git-daemon > > "Like many programs that switch user id, the daemon does not reset > environment variables such as $HOME when it runs git programs, e.g. > upload-pack and receive-pack. When using this option, you may also want > to set and export HOME to point at the home directory of <user> before > starting the daemon, and make sure any Git configuration files in that > directory are readable by <user>." >
Thanks Matt. I eliminated the warning by adding the following to /etc/default/git-daemon: HOME=/home/teastep export HOME -Tom -- Tom Eastep \ Q: What do you get when you cross a mobster with Shoreline, \ an international standard? Washington, USA \ A: Someone who makes you an offer you can't http://shorewall.org \ understand \_______________________________________________
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________ Shorewall-devel mailing list Shorewall-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/shorewall-devel