Re: git-daemon serving repos with repo.git/git-daemon-export-ok
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Jan 3, 2011, 23:11 UTC
- Message-ID
- <20110103231153.GA10733@burratino>
- In-Reply-To
- <4D224475.1090805@ecosensory.com>
Hi John,
John Griessen wrote:
> john@toolbench:~/EEProjects/test$ git clone git://ecosensory.com/tek_7k_ext.git > Cloning into tek_7k_ext... > fatal: protocol error: bad line length character: fata
[...]
Show 7 quoted lines
> Next I tried changing my command that runs git-daemon > from > > exec 2>&1 > echo 'git-daemon starting.' > exec chpst -ugitdaemon \ > "$(git --exec-path)"/git-daemon --verbose --base-path=/var/cache /var/cache/git
Worrisome. Based on /usr/share/doc/git-daemon-run/README.Debian, I would be interested in:
git --version dpkg -l git-daemon-run sv stat git-daemon cat /var/log/git-daemon/current
It looks like the daemon is sending a malformed reply starting with "fatal: ", similar to the bug fixed by v1.7.0.3~7 (daemon: parse_host_and_port SIGSEGV if port is specified, 2010-03-20).
It the error message does not provide any insight, I'd also suggest using strace or ltrace to attach to the running git-daemon process to see what's going on.
Thanks for reporting, Jonathan