I have this problem when I try to click git:
error: insufficient permission for adding an object to repository database ./objects fatal: failed to write object error: unpack failed: unpack-objects abnormal exit To ssh://<repo url>/<repo dir> ! [remote rejected] master -> master (n/a (unpacker error)) error: failed to push some refs to 'ssh://<repo url>/<repo dir>'
I had this until sporadic time, and we always had to solve it with each sshing user for the repo and set group permissions for all files in it using
chmod -R g+w *
This was never a satisfactory solution, and now he bit us in the ass when one of the guys left and no one knows the password of his repo. So, I'm trying to solve this correctly.
The error occurs when someone tries to undo a change that will change the repository owned by another user (therefore, setting the group recording option above). I worked a bit on this and found a couple of solutions discussed (none of them worked for me)
1) make sure that the group to which the repositories belong is the main group of users (I believe that this is already so: each user has only one group, so it should be their main group, right?)
2) git parameter repo core.sharedRepository, as described here: Git: it is impossible to click from one computer I changed this, but it did not matter. Do I need to reload the configuration or something to really affect the change?
Here my repo configuration looks like atm:
[core] repositoryformatversion = 0 filemode = true bare = true sharedRepository = all [receive] denyNonFastForwards = True
Thanks for any advice or suggestions! Max
git linux
Max Williams Oct 26 '10 at 16:25 2010-10-26 16:25
source share