]> source.dussan.org Git - jgit.git/commit
Use readString() to trim trailing LF from first line 97/5297/1
authorShawn O. Pearce <spearce@spearce.org>
Thu, 8 Mar 2012 03:51:12 +0000 (19:51 -0800)
committerShawn O. Pearce <spearce@spearce.org>
Thu, 8 Mar 2012 03:51:12 +0000 (19:51 -0800)
commitc1ed9483ff77487b38587a96a74b6ebb813985da
tree6237bbd19e6e90e022edb44d75291f54c83f6688
parent500e17e7d6d3c29cef0fd4651dc1cd29d7d0b8e6
Use readString() to trim trailing LF from first line

The fetch-pack/upload-pack stream usually has an LF at the
end of the first "want" line. Trim this when checking to
see if side-band or side-band-64k was used.

Perform the same trim for send-pack/receive-pack, as it is
harmless in this context to ignore an LF just before doing
an error report.

Change-Id: I6ef946bb6124fa72c52bd5320187eaac3ed906e7
org.eclipse.jgit.http.server/src/org/eclipse/jgit/http/server/GitSmartHttpTools.java