FriendCode / gittle

Pythonic Git for Humans
Other
732 stars 90 forks source link

GitServer hangs up on --depth 1 #16

Closed Tinche closed 10 years ago

Tinche commented 11 years ago

I'm trying to run the gittle.GitServer locally as an experiment for a larger project. I can checkout just fine, except when the client specifies the --depth argument.

> git clone git://localhost/jquery -b 2.0.3 . --progress --depth 1
Cloning into '.'...
fatal: The remote end hung up unexpectedly

(nothing gets printed out in the Python REPL I started the server from.)

I'd be willing to contribute if the fix wasn't too difficult.

Tinche commented 11 years ago

This seems to be an upstream thing: https://bugs.launchpad.net/dulwich/+bug/909524

Depending on your policy, this issue can be closed.

jelmer commented 11 years ago

That's a bit odd - even if dulwich doesn't support shallow clones, the git client should see that it doesn't provide that capability and print an error (or choose to silently ignore --depth 1).

AaronO commented 10 years ago

Closing this, since it's upstream in dulwich. Maybe would require a dulwich update (move away from my fork to jelmer's master).

@jelmer I'll get back to you on this.