Go Back   The macosxhints Forums > OS X Help Requests > UNIX - General



Reply
 
Thread Tools Rate Thread Display Modes
Old 03-05-2012, 08:26 AM   #1
denn88
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?
denn88 is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 02:01 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.