Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jgit-dev] JGit with Google Code Git : application/x-git-upload-pack-result vs application/x-git-upload-pack-response

Looks like an old bug from the past:

Sent from my (old) iPhone

On 16 Jul 2011, at 10:24, Roberto Tyley <roberto.tyley@xxxxxxxxx> wrote:

The Smart HTTP git transport newly offered by Google Code seems to be a little funky - while it works with CGit, cloning with JGit fails with this error:

expected Content-Type application/x-git-upload-pack-result; received Content-Type application/x-git-upload-pack-response

I'm just reading through http://git-scm.com/http-protocol.txt  (which doesn't mention x-git-upload-pack-response so far as I can see) but in the meantime I thought I'd ask if anyone else has had success cloning a Google Code git repo using JGit?

cheers,
Roberto


$ java -cp target/jgit-cli.jar org.eclipse.jgit.pgm.Main clone https://roberto.tyley@code.google.com/p/test-for-agit/ test-for-agit
Initialized empty Git repository in /home/roberto/development/jgit/org.eclipse.jgit.pgm/test-for-agit/.git
fatal: https://roberto.tyley@code.google.com/p/test-for-agit/: expected Content-Type application/x-git-upload-pack-result; received Content-Type application/x-git-upload-pack-response
fatal: https://roberto.tyley@code.google.com/p/test-for-agit/: expected Content-Type application/x-git-upload-pack-result; received Content-Type application/x-git-upload-pack-response


Cloning into test-for-agit-cgit...
Password: 
remote: Counting objects: 3, done.
remote: Finding sources: 100% (3/3), done.
remote: Total 3 (delta 0)
Unpacking objects: 100% (3/3), done.

_______________________________________________
jgit-dev mailing list
jgit-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jgit-dev

Back to the top