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

Re: [remote rejected] master -> master (n/a (unpacker error))

From
GTGreg Troxel <gdt@ir.bbn.com>
Date
May 13, 2010, 12:05 UTC
Message-ID
<rmiy6fo3t3n.fsf@fnord.ir.bbn.com>
In-Reply-To
<AANLkTilz_gbHl_RLyOuvEIdjPoUDIfZTUCpnswdHTiej@mail.gmail.com>
Robert Buck <buck.robert.j@gmail.com> writes:
Show 5 quoted lines
> Yes, the repository is shared by several people, and in geographically
> different locations, ssh-ing to the same host, under different groups.
> So your recommendation would be to use --shared. But this won't work
> so well out in the wild will it? Meaning, what if people's accounts
> are NOT under the same group that is?

Git simply rides on filesystem permissions. So you choose a group to control access to the repository, chgrp -R the repo to that group, and config shared=0660. Then you put people in the group to give them access; it doesn't have to be their primary gid. I don't follow your objection; you seem to want to use groups to control access yet not set up a group for the repo.

On some systems (e.g. BSD), directories automatically inherit the parent dir's group. On others, you need setgid bit. I have the impression that git will deal with this all correctly if you simply have "sharedrepository = 0660" under [core] in config; I would expect it to chgrp new files/dirs as needed to match the repo dir's group.

I don't see how chroot would change the issues above.
Previous: Robert BuckNext: Andreas Schwab
Message 5 of 8 in “[remote rejected] master -> master (n/a (unpacker error))”
  1. Robert BuckMay 12, 2010
  2. Chris PackhamMay 13, 2010
  3. Jonathan NiederMay 13, 2010
  4. Robert BuckMay 13, 2010
  5. Greg TroxelMay 13, 2010
  6. Andreas SchwabMay 13, 2010
  7. Jonathan NiederMay 13, 2010
  8. DavidLeeCritesNov 27, 2015

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.