Re: git-daemon shallow checkout fail

2017-02-07 Thread Bob Proulx
Duy Nguyen wrote: > I wonder if we should make this "git/1.9.1" information more visible. We could > > 1) Always print it when cloning > 2) Print it when cloning with -v (printing all capabilities with -v > might not be a bad idea) > 3) Include it in error messages when clone/fetch fails I don't

Re: git-daemon shallow checkout fail

2017-02-07 Thread Duy Nguyen
On Tue, Feb 7, 2017 at 7:56 AM, Bob Proulx wrote: > 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

Re: git-daemon shallow checkout fail

2017-02-06 Thread Bob Proulx
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 evi

Re: git-daemon shallow checkout fail

2017-02-06 Thread Bob Proulx
Duy Nguyen wrote: > Jeff King wrote: > > It depends on the git version on the server. The interesting code is in > > upload-pack.c, which is spawned by git-daemon to serve a fetch or clone > > request. > > > > See commit b790e0f67 (upload-pack: send shallow info over stdin to > > pack-objects, 2014

Re: git-daemon shallow checkout fail

2017-02-06 Thread Bob Proulx
Hello Johannes, Thank you very much for the good hints here. They are very helpful. Johannes Schindelin wrote: > Assuming that you can rebuild your Git with debug symbols and without > optimization (simply remove the -O2 from CFLAGS in the Makefile, I never > had any luck with single-stepping in

Re: git-daemon shallow checkout fail

2017-02-02 Thread Duy Nguyen
On Tue, Jan 31, 2017 at 12:27 AM, Jeff King wrote: > On Sat, Jan 28, 2017 at 05:29:32PM -0700, Bob Proulx wrote: > >> However the problem driving me crazy is that this only fails this way >> on one machine. Unfortunately failing on the machine I need to use. >> If I try this same setup on any oth

Re: git-daemon shallow checkout fail

2017-01-30 Thread Jeff King
On Sat, Jan 28, 2017 at 05:29:32PM -0700, Bob Proulx wrote: > However the problem driving me crazy is that this only fails this way > on one machine. Unfortunately failing on the machine I need to use. > If I try this same setup on any other machine I try then there is no > failure and it works o

Re: git-daemon shallow checkout fail

2017-01-30 Thread Johannes Schindelin
Hi Bob, On Sat, 28 Jan 2017, Bob Proulx wrote: > And the server side says: > > [26071] Request upload-pack for '/test-project.git' > [26071] fatal: Unable to create temporary file > '/srv/git/test-project.git/shallow_xKwnvZ': Permission denied > [26055] [26071] Disconnected (with error)

git-daemon shallow checkout fail

2017-01-28 Thread Bob Proulx
I am trying to understand a problem with shallow checkouts through the git-daemon. The server side fails trying to create a shallow_XX file in the repository. But of course it can't due to no permissions from the git-daemon user. However the problem driving me crazy is that this only fails t