Re: git-daemon shallow checkout fail
From: Bob Proulx <hidden>
Date: 2017-02-07 00:56:39
Bob Proulx wrote:
17:20:40.590177 pkt-line.c:46 packet: clone< 34e7202270c381f4e5734180dc19426ce69f2e1e HEAD\0multi_ack thin-pack side-band side-band-64k ofs-delta shallow no-progress include-tag multi_ack_detailed symref=HEAD:refs/heads/master agent=git/1.9.1
The evidence of it running the wrong version being the 1.9.1 which is not the bits I built.
Therefore it looks like it is invoking some other command by a hard coded path and avoiding PATH to my development bits. It must be invoking some other binary. I will get more agressive about disabling the packaged version and hopefully find out which one.
I did and of course it is /usr/bin/git-upload-pack and if I disable that binary then git-daemon no longer operates. error: cannot run upload-pack: No such file or directory But shouldn't it find git-upload-pack from PATH? Since I have git-upload-pack installed in PATH? Apparently not. At least not when invoking as /path/to/git-daemon directly. In any case with the all of your very good help, especially the version echo print, guiding me to the problem that I was able to make this work. cd /run/git && env -i HOME=/run/git PATH=$HOME/src/git-stuff/git:/usr/bin:/bin $HOME/src/git-stuff/git/git --exec-path=$HOME/src/git-stuff/git daemon --export-all --base-path=/srv/git --verbose That works for the git-daemon. It does not require me to modify anything else on the system. Good enough. Problem solved. Thanks! Bob