0

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 (http://progit.org/book/ch4-7.html) I run into trouble pretty soon. This is what happens:

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

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.

Jasper Kennis
  • 379
  • 1
  • 3
  • 12

2 Answers2

0

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 -".

Josh Steadmon
  • 430
  • 2
  • 7
0

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.

Arrowmaster
  • 511
  • 2
  • 5