Make UploadPack capability parsing more liberal
commit42b8b5dee283cf5c79d982262a67593cbab312b5
authorShawn O. Pearce <spearce@spearce.org>
Tue, 16 Jun 2009 18:59:25 +0000 (16 11:59 -0700)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Tue, 16 Jun 2009 19:09:30 +0000 (16 21:09 +0200)
tree5b7c26f685e7c5ee2d811f688594335a9348b766
parentd523757b99448e65ec87c1bb90712b2aa5cbb6ea
Make UploadPack capability parsing more liberal

Prior to 220a6626c86b ("Fix BaseFetchPackConnection's output of
selected capabilities") the JGit pack client produced a capability
request header that JGit itself can't parse, but C Git can.
The parsing error was caused by a missing space after the want'd
SHA-1 and before the first capability name.

Even though JGit's pack client has been fixed in more recent
versions, we should still fix the server to be more libral in
what it accepts from clients, so that older JGit client builds
can still interoperate.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.spearce.jgit/src/org/spearce/jgit/transport/UploadPack.java