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

Re: Error: unable to unlink ... when using "git gc"

From
Sitaram Chamarty <sitaramc@gmail.com>
Date
Jan 6, 2009, 15:33 UTC
Message-ID
<slrngm6uf5.vuo.sitaramc@sitaramc.homelinux.net>
In-Reply-To
<488807870901060705m49419ec1he14aace5caaa3d89@mail.gmail.com>
On 2009-01-06, Johnny Lee <johnnylee194@gmail.com> wrote:
> On Tue, Jan 6, 2009 at 7:57 PM, Sitaram Chamarty <sitaramc@gmail.com> wrote:
Show 12 quoted lines
>> If you're not worried about the finer-grained access control
>> that acl(5) gives you, just do what "git init
>> --shared=group" does:
>>
>>    git config core.sharedrepository 1 # as mentioned above
>>    chmod g+ws .git
>>
>> Now set the group to something (I use "gitpushers" ;-)
>>
>>    chgrp -R gitpushers .git
>>
>> amd make sure all your users are part of that group.
> We also plan to do it in this way, just a small wondering that it
> looks a kind of workaround instead of a more graceful solution.

I wouldn't consider it a workaround. It uses normal Unix permissions the way they were designed to, including setgid for directories.

Actually, I am yet to come up with a situation where I actually needed ACLs, though they are more generalised, and fine-grained.

And the maint is all eminently scriptable.
Previous: Johnny LeeNext: Jeff King
Message 10 of 17 in “Error: unable to unlink ... when using "git gc"”
  1. Johnny LeeJan 6, 2009
  2. Jeff KingJan 6, 2009
  3. Junio C HamanoJan 6, 2009
  4. Johnny LeeJan 6, 2009
  5. Matthieu MoyJan 6, 2009
  6. Jeff KingJan 6, 2009
  7. Johnny LeeJan 6, 2009
  8. Sitaram ChamartyJan 6, 2009
  9. Johnny LeeJan 6, 2009
  10. Sitaram ChamartyJan 6, 2009
  11. Jeff KingJan 7, 2009
  12. Boyd Stephen Smith Jr.Jan 7, 2009
  13. Sitaram ChamartyJan 7, 2009
  14. Sitaram ChamartyJan 7, 2009
  15. Boyd Stephen Smith Jr.Jan 7, 2009
  16. Sitaram ChamartyJan 7, 2009
  17. Boyd Stephen Smith Jr.Jan 7, 2009

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.