<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 &quot;shared&quot;, 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">&lt;<a href="mailto:aseipp@pobox.com" target="_blank">aseipp@pobox.com</a>&gt;</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 &#39;chmod -R<br>
g+rw&#39; to the post-receive hook, although I don&#39;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 &lt;<a href="mailto:marlowsd@gmail.com">marlowsd@gmail.com</a>&gt; wrote:<br>
&gt; I tried and failed to push to the testsuite repo today.<br>
&gt;<br>
&gt; $ git push<br>
&gt; Counting objects: 12, done.<br>
&gt; Delta compression using up to 8 threads.<br>
&gt; Compressing objects: 100% (7/7), done.<br>
&gt; Writing objects: 100% (7/7), 695 bytes, done.<br>
&gt; Total 7 (delta 5), reused 0 (delta 0)<br>
&gt; error: insufficient permission for adding an object to repository database<br>
&gt; ./objects<br>
&gt;<br>
&gt; fatal: failed to write object<br>
&gt; error: unpack failed: unpack-objects abnormal exit<br>
&gt; To simonmar@darcs.haskell.org:/srv/darcs/testsuite.git<br>
&gt;  ! [remote rejected] master -&gt; master (n/a (unpacker error))<br>
&gt; error: failed to push some refs to<br>
&gt; &#39;simonmar@darcs.haskell.org:/srv/darcs/testsuite.git&#39;<br>
&gt;<br>
&gt; It looks like we&#39;re not setting group write permission correctly after<br>
&gt; commits:<br>
&gt;<br>
&gt; simonmar@ghc:/home/darcs/testsuite.git/objects$ ls -l<br>
&gt; total 136<br>
&gt; drwxr-sr-x 2 ezyang   darcs 4096 Jul 20 22:53 02<br>
&gt; drwxr-sr-x 2 simonmar darcs 4096 Jul 22 09:51 0a<br>
&gt; drwxr-sr-x 2 ezyang   darcs 4096 Jul 20 18:13 0f<br>
&gt;<br>
&gt; I vaguely recall that we used to do this with a post-commit hook to do a<br>
&gt; &#39;chmod g+w -R&#39; on the tree.  Could someone look into this please?<br>
&gt;<br>
&gt; Cheers,<br>
&gt;         Simon<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; ghc-devs mailing list<br>
&gt; <a href="mailto:ghc-devs@haskell.org">ghc-devs@haskell.org</a><br>
&gt; <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>