Insufficient Permission Pushing to Git Shared Repo over Smart HTTP

天涯浪子 提交于 2019-12-04 11:00:41

Try running:

git repo-config core.sharedRepository true

This had solved similar issue for me. From the docs:

core.sharedRepository

If true, the repository is made shareable between several users in a group (making sure all the files and objects are group-writable).

Can you verify the steps as given here ( this is definitely a permissions / groups issue):

http://parizek.com/?p=177

The solution is probably in the group permissions of the repository on the server.

  1. cd to /opt/git
  2. sudo chgrp -R apache project.git

I thing apache usually runs as www-data, not apache, so the group may be wrong also

I use gitosis and manage accounts through server accounts instead of Apache, but solved my same problem with this kind of solution

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!