A user guest:devgroup could not push to a git repository specified by user:devgroup /var/git/foo.git.
A git client of guestdev got below error.
$ git push (original master) 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://guestdev@foo.com/var/git/foo.git ! [remote rejected] master -> master (n/a (unpacker error)) error: failed to push some refs to 'ssh://guestdev@foo.com/var/git/foo.git'Fixed the git daemon's settings with below commands. They made the daemon to use the group file permissions when writing to foo.git/objects.
cd /var/git/foo.git sudo chmod -R g+ws * sudo chgrp -R devgroup * git repo-config core.sharedRepository truecf. stackoverflow: Error pushing to GitHub - insufficient permission for adding an object to repository database
user:devgroup /var/git/foo.git という Git レポジトリに guestdev:devgroup が push しようとした際に以下のようなパーミッションエラーが出た.
stackoverflow: Error pushing to GitHub - insufficient permission for adding an object to repository database
$ git push (original master) 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://guestdev@foo.com/var/git/foo.git ! [remote rejected] master -> master (n/a (unpacker error)) error: failed to push some refs to 'ssh://guestdev@foo.com/var/git/foo.git'以下のようにして解決した.
cd /var/git/foo.git sudo chmod -R g+ws * sudo chgrp -R devgroup * git repo-config core.sharedRepository true参考にした URL:
stackoverflow: Error pushing to GitHub - insufficient permission for adding an object to repository database
0 件のコメント:
コメントを投稿