Hello,
When I try to do a shallow clone from a c-l.net repository I get this error:
$ git clone --depth=1 git://common-lisp.net/projects/alexandria/alexandria.git Cloning into 'alexandria'... fatal: The remote end hung up unexpectedly fatal: early EOF fatal: index-pack failed
I tried to google potential causes, to no avail.
Cheers, Luís
P.S.: while searching for c-l.net's support contact, I noticed that the URL under the "Maintenance" section at http://common-lisp.net/about/ is dead.
Hi Luís,
On Fri, 14 Nov 2014 11:30:42 +0000 Luís Oliveira luismbo@gmail.com wrote:
When I try to do a shallow clone from a c-l.net repository I get this error:
$ git clone --depth=1 git://common-lisp.net/projects/alexandria/alexandria.git Cloning into 'alexandria'... fatal: The remote end hung up unexpectedly fatal: early EOF fatal: index-pack failed
I tried to google potential causes, to no avail.
Funny, really, because a normal clone works without problems. I'll see what I can uncover.
P.S.: while searching for c-l.net's support contact, I noticed that the URL under the "Maintenance" section at http://common-lisp.net/about/ is dead.
Thanks for reporting.
Regards, and thanks,
Mario
On 14 Nov 2014, at 12:41, Mario S. Mommer mommer@moss-clad.net wrote:
Hi Luís,
On Fri, 14 Nov 2014 11:30:42 +0000 Luís Oliveira luismbo@gmail.com wrote:
When I try to do a shallow clone from a c-l.net repository I get this error:
$ git clone --depth=1 git://common-lisp.net/projects/alexandria/alexandria.git Cloning into 'alexandria'... fatal: The remote end hung up unexpectedly fatal: early EOF fatal: index-pack failed
I tried to google potential causes, to no avail.
Funny, really, because a normal clone works without problems. I'll see what I can uncover.
P.S.: while searching for c-l.net's support contact, I noticed that the URL under the "Maintenance" section at http://common-lisp.net/about/ is dead.
Thanks for reporting.
Regards, and thanks,
Mario
Clo-devel mailing list Clo-devel@common-lisp.net http://mailman.common-lisp.net/cgi-bin/mailman/listinfo/clo-devel
Trying to run such a clone locally as user ‘mevenson’ I get:
mevenson@lisp:~$ git clone --depth 1 file:///srv/project/alexandria/alexandria.git Cloning into 'alexandria'... fatal: Unable to create temporary file '/srv/project/alexandria/alexandria.git/shallow_fhKCi7': Permission denied fatal: The remote end hung up unexpectedly fatal: early EOF fatal: index-pack failed
Not entirely sure what user the httpd is doing the operation as, but the rest of the error message matches.
Hi Luís,
the problem is that a shallow fetch implies that a temporary file has to be written into the repository *by git-daemon*. Obviously, and for good reason, we didn't give git-daemon those permissions and I don't think we should. I expect the shallow fetch to work over ssh (can you confirm?).
There is a recentish patch addressing this behavior (bug?) here:
http://git.661346.n2.nabble.com/PATCH-upload-pack-allow-shallow-fetching-fro...
How much of an issue is this for you?
Regards, Mario
"Mario S. Mommer" mommer@moss-clad.net writes:
the problem is that a shallow fetch implies that a temporary file has to be written into the repository *by git-daemon*. Obviously, and for good reason, we didn't give git-daemon those permissions and I don't think we should. I expect the shallow fetch to work over ssh (can you confirm?).
I will try at home later today when I have access to my SSH key. Thanks for the quick response!
There is a recentish patch addressing this behavior (bug?) here:
http://git.661346.n2.nabble.com/PATCH-upload-pack-allow-shallow-fetching-fro...
How much of an issue is this for you?
I don't think this is a big issue.
This came up in the context of automated testing using Travis CI. Since test runs start off from a pristine Linux installation, every run involves cloning repositories. I was doing a shallow clone in the hope it would be more efficient. I didn't even measure if it helped at all.
Cheers, Luís
On Fri, 14 Nov 2014 13:46:02 +0000 Luís Oliveira luismbo@gmail.com wrote:
"Mario S. Mommer" mommer@moss-clad.net writes:
I expect the shallow fetch to work over ssh (can you confirm?).
I will try at home later today when I have access to my SSH key.
This will only work when you are a member of the corresponding project.
Thanks for the quick response!
You are welcome! :-)
Regards, Mario
On Fri, Nov 14, 2014 at 12:22 PM, Mario S. Mommer mommer@moss-clad.net wrote:
I expect the shallow fetch to work over ssh (can you confirm?).
Indeed, shallow fetch over SSH works just fine.