Error pushing to GitHub – insufficient permission for adding an object to repository database

Question:

I’m getting back an unusual error while trying to do a “git push” to my GitHub repository:

  • After a clean clone from GitHub, I can edit/add/commit/push a modified file.
  • If I then repeat this a second time I get the above error.
  • I can push to other GitHub repositories just fine.
  • I’ve checked file/directory permissions on my side, and they seem OK.
  • I’m running git 1.6.2.3 on Mac OS X 10.5.8

The above repository was the source of my fun for a previous Stack Overflow question (SO 1904860), so maybe the GitHub repo got corrupted. The only similar issue I’ve found via searching was an unpack failed problem reported on github. Has anybody else run into this issue before, especially when not using GitHub?

Answer:

When you see this error outside of github, here’s a remedy.

Got this from:
http://mapopa.blogspot.com/2009/10/git-insufficient-permission-for-adding.html

After this the git daemon should use the group file permissions when writing to .git/objects.

Leave a Reply