Git permissions problem
Sometimes when i try to do a commit via Rubymine i receive the following error:
error: insufficient permission for adding an object to repository database .git/objects
The most strange is that sometimes the commit works, and when I do the commit via git command line it aways works.
请先登录再写评论。
Marcio,
please check that .git/objects folder has correct permissions. Actually all .git directory should be read- and writable for the user you're committing from.
Kirill,
we have the same similar problem with a osx system here. We can create/delete file in the remote git directory without problems. But git push returns a
"error insufficient permission for adding an object to remote repository database . objects" message. The remote repository is on the file system (file://<remote-git>).
Regards
Andreas
1. Please check permissions in the both local and remote .git directories. Especially, the objects subdir.
2. Does running git from console produce the same error message?
>> 1. Please check permissions in the both local and remote .git directories. Especially, the objects subdir.
Permission is ok, we can create/delete files manually.
>> 2. Does running git from console produce the same error message?
Yes, same erroe messages.
This problem seems not related to RubyMine. Found a workaround: git config receive.unpackLimit 1 (found
in http://git.661346.n2.nabble.com/unpacker-error-on-push-td5187061.htmll).
Still no idea where the problem realy comes from.
--Andreas