I am trying to evaluate git for our team, and one of the requirements is to use HTTPS as a transport method. I am trying to complete the git-http-backend documentation, as well as some rare blogs when setting up using the new Smart HTTP transport, but am just not getting it. I know that this is probably something stupid, but I tried my brain on this subject to no avail. Don't take any real knowledge with git, I'm pretty new to this tool.
Right now, I can just clone HTTP, but when I try to push, the client gets:
$ git push Username: Password: Counting objects: 4, done. Delta compression using up to 4 threads. Compressing objects: 100% (2/2), done. Writing objects: 100% (3/3), 291 bytes, done. Total 3 (delta 0), reused 0 (delta 0) error: unpack failed: unpack-objects abnormal exit
The Apache server error log states:
error: insufficient permission to add an object to the repository database. / objects
fatal: could not write object
Apache configuration:
SetEnv GIT_PROJECT_ROOT /opt/git SetEnv GIT_HTTP_EXPORT_ALL ScriptAlias /git/ /usr/libexec/git-core/git-http-backend/ <Location /git> AuthType Basic AuthName "Private Git Access" Require valid-user AuthUserFile /opt/git/passwords </Location>
Obviously, my first thought was to resolve the file, so I made a quick chown -R apache: / opt / git
But I still get the same error.
Thank you, I really appreciate any help I can get from this.