Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to get gitosis installed because I want to use Indefero and I need a deamon for the git:// protocol. However, following the instructions in the Git Pro book ( I run into trouble pretty soon. This is what happens:

[x@x gitosis]# sudo -H -u git gitosis-init < /tmp/
Fatal Python error: <stdin> is a directory

The error is really vague to me and I didn't find anything helpful around, except that I think stdin is somehow part of C, which confuses me even more since the error is Python. I really don't understand what's going on, or where to look for clues, so I hope someone can tell me where to look next for more info on the problem. Tnx.

share|improve this question
up vote 0 down vote accepted

Gitosis is unmaintained and has been deprecated in favor of gitolite (progit page). Part of the reason for this is because of the extremely error prone installation and setup of gitosis as you have found out.

Addtionally you mention you need a daemon for the git:// protocol. Neither gitosis or gitolite provide this or are necessary for it. Gitolite does provide a way of controlling which repositories are available via the git:// protocol but the external git-daemon needs to already be installed, configured, and running.

share|improve this answer
Thanks, that's very helpful. I'll use gitolite instead then and see if I can install that daemon first than. – Jasper Kennis Mar 12 '11 at 12:26

I think that your shell is redirecting stdin for sudo, not for your git command. Instead, try running git from a root shell. You (hopefully) can get a root shell with "sudo su -".

share|improve this answer
Sorry, replace "root" with "git user" above. – Josh Steadmon Mar 8 '11 at 23:01
Thanks for your answer:) I'm going to install gitolite though, because of what Arrowmaster said. – Jasper Kennis Mar 12 '11 at 12:24

Your Answer


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.