Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've installed gitosis onto my server, but seeing as I'm developing on the server, I'd like to be able to push to gitosis, so I can work from macmini as well. The server is called workwork and the gitosis-admin has the daniel@workwork.pub file generated from the server, and has this in gitosis.conf:

[group testproject]
writable = testproject
members = daniel@workwork

And that successfully has been pushed to the server.

rails new testproject
cd testproject/
git init
git add .
git commit -a -m "init commit"
git remote add origin gitosis@workwork:testproject.git
git push origin master:refs/heads/master

The last command gives this: gitosis@workwork's password: gitosis doesn't have a password, and pushing a new project from my macmini just does the correct git pushing.

share|improve this question

1 Answer 1

up vote 0 down vote accepted

Gitosis has known unfixed bugs in its installation method that prevent it from working without manual intervention. You should not use it and instead switch to gitolite. Additionally gitosis is unmaintained and deprecated, further reasons to switch to gitolite.

share|improve this answer
    
I'll have a look into gitolite, but I'd like to know why its not working. Can you suggest a reason why its failing to "remote" to itself? –  Zeophlite Mar 26 '11 at 14:04
    
The post-receive hook does not get set to executable so it does not update ~/.ssh/authorized_keys. –  Arrowmaster Mar 26 '11 at 16:20

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.