git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* sharedrepository=group not working
@ 2018-12-04  3:27 Jamie Zawinski
  2018-12-04  4:09 ` Jeff King
  0 siblings, 1 reply; 6+ messages in thread
From: Jamie Zawinski @ 2018-12-04  3:27 UTC (permalink / raw)
  To: git

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/


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-12-04  5:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-04  3:27 sharedrepository=group not working Jamie Zawinski
2018-12-04  4:09 ` Jeff King
2018-12-04  4:19   ` Jamie Zawinski
2018-12-04  4:20     ` Jamie Zawinski
2018-12-04  4:50     ` Jeff King
2018-12-04  5:24       ` Jamie Zawinski

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).