I think sharedrepository=group stopped working some time between 2.10.5 (works)
and 2.12.4 (does not). 2.19.2 also does not.
I have a user trying to push to a shared repo; the user is not the owner of the
files but it is in the same group. All the repo files are g+rw and all the repo
directories are g+srw.
drwxrwsr-x. 252 jwz cvs 4096 Dec 3 18:53 /cvsroot/dna.git/objects/
I am getting:
error: remote unpack failed: unable to create temporary object directory
To /cvsroot/dna.git
! [remote rejected] master -> master (unpacker error)
If I'm reading this strace right, it looks like git is successfully creating a
directory under objects/ and then failing to create a subdirectory of it (maybe
because the just-created parent directory ended up with the wrong permissions?)
mkdir("./objects/incoming-U5EN8D", 0700 <unfinished ...>
<... mkdir resumed> ) = 0
rt_sigaction(SIGINT, {0x56a860, [INT], SA_RESTORER|SA_RESTART,
0x7f842cb3b2f0}, <unfinished ...>
<... rt_sigaction resumed> {SIG_IGN, [], 0}, 8) = 0
rt_sigaction(SIGHUP, {0x56a860, [HUP], SA_RESTORER|SA_RESTART,
0x7f842cb3b2f0}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGTERM, {0x56a860, [TERM], SA_RESTORER|SA_RESTART,
0x7f842cb3b2f0}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGQUIT, {0x56a860, [QUIT], SA_RESTORER|SA_RESTART,
0x7f842cb3b2f0}, {SIG_DFL, [], 0}, 8) = 0
rt_sigaction(SIGPIPE, {0x56a860, [PIPE], SA_RESTORER|SA_RESTART,
0x7f842cb3b2f0}, {SIG_DFL, [PIPE], SA_RESTORER|SA_RESTART, 0x7f842cb3b2f0}, 8)
= 0
mkdir("./objects/incoming-U5EN8D/pack", 0777) = -1 EACCES (Permission denied)
--
Jamie Zawinski https://www.jwz.org/ https://www.dnalounge.com/