Fix BaseFetchPackConnection's output of selected capabilities
commit220a6626c86b204d832294b0c9425c0bb8dce880
authorShawn O. Pearce <spearce@spearce.org>
Tue, 23 Dec 2008 22:56:46 +0000 (23 14:56 -0800)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Sun, 4 Jan 2009 00:01:52 +0000 (4 01:01 +0100)
tree176b6bc70eb2e013eba95f7c5abf6785b16006a2
parente3d58d7875477b4f73938cce96501c280eafcc2d
Fix BaseFetchPackConnection's output of selected capabilities

When we output the first "have ..." line for an upload-pack server
process we need to dump "have $id $cap1 $cap2 ..", where there is
a space between the SHA-1 $id and the first capability name $cap1.
If we don't dump that space we run into errors with our own version
of upload-pack not being able to parse the SHA-1 out of the line,
as the line was split incorrectly.

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/BasePackConnection.java
org.spearce.jgit/src/org/spearce/jgit/transport/BasePackPushConnection.java