|
|
#1 |
|
Prospect
Join Date: Oct 2003
Location: The Netherlands, Europe
Posts: 47
|
Git daemon running, but a git push fails, access denied
I've set up Git Daemon (1.7.x) on my MacMini Lion 10.7.3. I used a launchd plist file to launch the git daemon at system boot. Created a special '_git' user for the daemon. These are the arguments to the the git daemon to launch.
/usr/local/git/bin/git daemon --export-all --reuseaddr --base-path=/Library/Git/Repositories Created a test git repo: /Library/Git/Repositories/test-repo.git is a 'bare' git repo. And the ownership (chown etc.) of the files belong to this '_git' user. I can clone the above Git repo, on say another Windows or Mac computer: git clone git://servername.com/test-repo.git The repo clones correctly. Then do a local commit and try to push the changes back to my MacMini Git Daemon server: git push origin master But that gives a permission error on the server: fatal: remote error: access denied or repository not exported: /test-repo.git I added the magic file 'git-daemon-export-ok' file in the repo dir. But I keep getting the above error. I even set the chmod to 777 of the /Library/Git/Repositories/test-repo.git Same error. I copied over the 'hooks/post-commit.sample' to 'hooks/post-commit' But same error when trying to push. The 'export-all' flag is given for the git daemon and the post-commit is in place ... Anyone any ideas? |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|