Fix bug in git-daemon
authorAndreas Rohner <redacted>
Sat, 2 Aug 2014 14:40:34 +0000 (16:40 +0200)
committerAndreas Rohner <redacted>
Wed, 3 Sep 2014 00:14:53 +0000 (02:14 +0200)
commit19f3a40faea0b5962ccba0d7581853b49ae51675
tree4161898a77b748ed2f220d539a58e8f06ad6ad42
parent3a78fe047ab26879cf471df69e29faa183b726bb
Fix bug in git-daemon

The git-daemon command currently doesn't work and displays the following
error whenever a repository is cloned:

error: cannot run daemon: No such file or directory
[10920] unable to fork

On the client side the connection is simply terminated. The problem is,
that git-daemon tries to start a new instance of itself for every
new client that is connecting. It expects argv[0] to contain
"git-daemon", but since it is converted into a builtin command, argv[0]
only contains "daemon", which does not exist and causes the above error.
The fix simply prepends "git" to the list of arguments, so that the
resulting call looks something like "git daemon --serve ..."

Signed-off-by: Andreas Rohner <redacted>
net/git/Makefile
net/git/patches/100-convert_builtin.patch
git clone https://git.99rst.org/PROJECT