I'm trying to set up a git public repository for my team.
I have installed Git on a linux box (RedHat 5.6).
As a first step, i'm trying to configure Git to use the git protocol, by setting it up to run through xinetd.
Here's the contents of /etc/xinetd.d/git-daemon:
# default: off
# description: The git server offers access to git repositories
service git
{
disable = no
type = UNLISTED
port = 9418
socket_type = stream
wait = no
user = nobody
server = /usr/bin/git/git
log_type = FILE /var/log/git-daemon
server_args = daemon --verbose --inetd --export-all --base-path=/tmp
log_on_failure += USERID
}
According to /var/log/messages the service is started correctly.
When trying to clone a test (bare) repository, i am getting a failure:
C:\Users\ltal>git clone git://10.161.202.45/lior-test.git c:\liorssf
Cloning into c:\liorssf...
fatal: protocol error: bad line length character: fata
Running the same command that is configured for xinetd from the shell seems to work fine:
/usr/bin/git/git daemon --verbose --export-all --base-path=/tmp &
Now cloning works.
What am i doing wrong here? Can't seem to find a solution.