<div class="gmail_quote">2009/7/22 Todd Zullinger <span dir="ltr"><<a href="mailto:tmz@pobox.com">tmz@pobox.com</a>></span><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div class="im">I wrote:<br>> It depends on how fine-grained you want things.  If all the users have<br>> ssh accounts on the system, you can just make the repository shared<br>> and add everyone who should have commit privileges to the group used<br>

> for the repository.  This is how it is done on <a href="http://fedorahosted.org/" target="_blank">fedorahosted.org</a>.  For<br>> example, if your git repo is at /git/repo.git:<br>><br>>     # Tell git the repository is shared<br>

>     $ git --git-dir /git/repo.git config core.sharedrepository true<br>><br>>     # Set proper group ownership<br>>     $ chgrp -R gitgroup /git/repo.git<br>><br>>     # Make all directories setgid<br>

>     $ find /git/repo.git -type d -exec chmod g+s {} \;<br>><br>>     # Ensure files and dirs are group writable<br>>     $ find /git/repo.git/ \( -type f -o -type d \) -a \<br>>                           \( -perm /u+w -a ! -perm /g+w \) \<br>

>         xargs chmod g+w<br><br></div>Incidentally, most of this is only needed if you're dealing with a<br>repository that you've already created.  If you're initializing a new<br>repo you can skip most of it.<br>

<br>   $ git --git-dir /git/repo.git --bare init --shared=true<br>
<div class="im">   $ chgrp -R gitgroup /git/repo.git<br><br></div>Then you can easily push things into it from an existing repo to add<br>content and git will handle the permissions.</blockquote>
<div> </div>
<div>Yes pushing over SSH is working great now, thanks. Just groups to sort out.</div>
<div> </div>
<div>Thanks,</div>
<div> </div>
<div>Aaron</div>
<div> </div></div>