Re: Request for detailed documentation of git pack protocol
- From
Shawn O. Pearce <spearce@spearce.org>
- Date
- Jun 4, 2009, 21:57 UTC
- Message-ID
- <20090604215748.GS3355@spearce.org>
- In-Reply-To
- <200906042255.43952.jnareb@gmail.com>
Jakub Narebski <jnareb@gmail.com> wrote:
> > By the way, is there some publicly accessible JGit (Java) and Dulwich > (Python) git-daemon one can test against?
There is a public JGit SSH based daemon running at review.source.android.com, on port 29418. But no public git-daemon that I know of.
You can easily set up a JGit daemon yourself, assuming you have a 'javac' available:
git clone git://repo.or.cz/egit.git jgit cd jgit ./make_jgit.sh ./jgit daemon --export-all . & git ls-remote git://localhost/.git
> Actually both git.kernel.org and github.com failed (deadlocked / hung) > when I tried to add extra key=value parameter at the end of request: > > 003bgit-upload-pack /project.git\0host=myserver.com\0user=me\0
JGit does it fine. I retested locally with this:
perl -e '$s="git-upload-pack $ARGV[0]\0hosterver.com\0user=me\0"; printf "%4.4x%s",4+length $s,$s ' /.git | nc localhost 9418
But yea, repo.or.cz hung. I see the bug in git daemon, I'll post a patch in a second. Don't do that test anymore, anywhere.
-- Shawn.