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

sharedrepository=group not working

From
Jamie Zawinski <jwz@jwz.org>
Date
Dec 4, 2018, 03:27 UTC
Message-ID
<F9365CBF-3D2D-4A05-AC0D-4604067B5826@jwz.org>
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/

Next: Jeff King
Message 1 of 6 in “sharedrepository=group not working”
  1. Jamie ZawinskiDec 4, 2018
  2. Jeff KingDec 4, 2018
  3. Jamie ZawinskiDec 4, 2018
  4. Jamie ZawinskiDec 4, 2018
  5. Jeff KingDec 4, 2018
  6. Jamie ZawinskiDec 4, 2018

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.