<div dir="ltr">Hello,<div><br></div><div>We should not need to run any hooks to setup permissions. The problem is that the repository is not setup to be "shared", which tells Git to manage the permissions correctly. You can enable this with the command:</div>
<div><br></div><div><div> git config sharedrepository 1</div></div><div><br></div><div>Because of this, it is likely that our permissions might be a bit messed up, so we may have to fix them up once. In particular, all directories should have the `setgi` bit, the files should have the correct group permissions. The easiest way to get to this state is probably to copy the group permissions from the user ones (probably with a judicious use of `find`).</div>
<div><br></div><div>-Iavor</div><div><br><div><br><div><br></div><div><br></div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jul 22, 2013 at 3:46 AM, Austin Seipp <span dir="ltr"><<a href="mailto:aseipp@pobox.com" target="_blank">aseipp@pobox.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This should be fixed, try again. I went ahead and added 'chmod -R<br>
g+rw' to the post-receive hook, although I don't know why none of the<br>
other repositories require it, and all of them seem to have the<br>
correct permissions. Maybe I can look into it next time I push.<br>
<div class="HOEnZb"><div class="h5"><br>
On Mon, Jul 22, 2013 at 4:56 AM, Simon Marlow <<a href="mailto:marlowsd@gmail.com">marlowsd@gmail.com</a>> wrote:<br>
> I tried and failed to push to the testsuite repo today.<br>
><br>
> $ git push<br>
> Counting objects: 12, done.<br>
> Delta compression using up to 8 threads.<br>
> Compressing objects: 100% (7/7), done.<br>
> Writing objects: 100% (7/7), 695 bytes, done.<br>
> Total 7 (delta 5), reused 0 (delta 0)<br>
> error: insufficient permission for adding an object to repository database<br>
> ./objects<br>
><br>
> fatal: failed to write object<br>
> error: unpack failed: unpack-objects abnormal exit<br>
> To simonmar@darcs.haskell.org:/srv/darcs/testsuite.git<br>
> ! [remote rejected] master -> master (n/a (unpacker error))<br>
> error: failed to push some refs to<br>
> 'simonmar@darcs.haskell.org:/srv/darcs/testsuite.git'<br>
><br>
> It looks like we're not setting group write permission correctly after<br>
> commits:<br>
><br>
> simonmar@ghc:/home/darcs/testsuite.git/objects$ ls -l<br>
> total 136<br>
> drwxr-sr-x 2 ezyang darcs 4096 Jul 20 22:53 02<br>
> drwxr-sr-x 2 simonmar darcs 4096 Jul 22 09:51 0a<br>
> drwxr-sr-x 2 ezyang darcs 4096 Jul 20 18:13 0f<br>
><br>
> I vaguely recall that we used to do this with a post-commit hook to do a<br>
> 'chmod g+w -R' on the tree. Could someone look into this please?<br>
><br>
> Cheers,<br>
> Simon<br>
><br>
> _______________________________________________<br>
> ghc-devs mailing list<br>
> <a href="mailto:ghc-devs@haskell.org">ghc-devs@haskell.org</a><br>
> <a href="http://www.haskell.org/mailman/listinfo/ghc-devs" target="_blank">http://www.haskell.org/mailman/listinfo/ghc-devs</a><br>
<br>
<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888">--<br>
Regards,<br>
Austin - PGP: 4096R/0x91384671<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
ghc-devs mailing list<br>
<a href="mailto:ghc-devs@haskell.org">ghc-devs@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/ghc-devs" target="_blank">http://www.haskell.org/mailman/listinfo/ghc-devs</a><br>
</div></div></blockquote></div><br></div>