{"thread":{"id":"26285","subject":"multiple group access to update repo","startedAt":"2011-01-15T04:53:28Z","lastAt":"2011-01-16T12:27:48Z","messageCount":2,"participants":["Neal Kreitzinger","Manuel Doninger"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"159517","messageId":"igr99g$mca$1@dough.gmane.org","threadId":"26285","inReplyTo":null,"subject":"multiple group access to update repo","fromName":"Neal Kreitzinger","fromEmail":"nkreitzinger@gmail.com","sentAt":"2011-01-15T04:53:28Z","receivedAt":"2011-01-15T04:53:28Z","isPatch":false,"sender":{"key":"nkreitzinger@gmail.com","avatar":null},"body":"How do I allow users from different linux group to cd to a common bare \nmirror repo and also to a common non-bare cloned repo and perform \ngit-fetch and git pull --ff-only?  Currently, the non-owner group gets \nthis error:\n\nerror: cannot open FETCH_HEAD: Permission denied\n\n\nv/r,\nNeal\n"},{"id":"159545","messageId":"AANLkTikGHEz4YknOAH2hFQKjYOhsYocdNfUYUZW_8GVd@mail.gmail.com","threadId":"26285","inReplyTo":"igr99g$mca$1@dough.gmane.org","subject":"Re: multiple group access to update repo","fromName":"Manuel Doninger","fromEmail":"manuel.doninger@googlemail.com","sentAt":"2011-01-16T12:27:48Z","receivedAt":"2011-01-16T12:27:48Z","isPatch":false,"sender":{"key":"manuel.doninger@googlemail.com","avatar":"https://gravatar.com/avatar/8bfe7a32dcd61ea071cdf4fc757b01896114d6e9bad681ef98595664a18ede98?d=mp&s=160"},"body":"On Sat, Jan 15, 2011 at 05:53, Neal Kreitzinger <nkreitzinger@gmail.com> wrote:\n> How do I allow users from different linux group to cd to a common bare\n> mirror repo and also to a common non-bare cloned repo and perform git-fetch\n> and git pull --ff-only?  Currently, the non-owner group gets this error:\n>\n> error: cannot open FETCH_HEAD: Permission denied\n>\n>\n> v/r,\n> Neal\n>\n\nIn this case i would suggest to access the repository via SSH and do\nthe access control with Gitolite. Then you can use for example a user\n\"Git\" and chmod the repositories to that user and group. Depending on\nthe size of your team, it could need a bit of time to configure\nGitolite, but it's very flexible to adjust it for later needs.\nIf this doesn't fit your needs, then i think the only solution is to\ncreate a linux group only for that repository and assign all users,\nthat need access to the repository, to that group.\n\nManuel\n"}]}