]> source.dussan.org Git - jgit.git/commit
Fix TransportException when reading bundle 00/64900/1
authorChris Gavin <chris@chrisgavin.me>
Wed, 6 Jan 2016 15:53:22 +0000 (15:53 +0000)
committerMatthias Sohn <matthias.sohn@sap.com>
Thu, 21 Jan 2016 16:07:57 +0000 (17:07 +0100)
commit82f47ace3d8f2141059cbe76ca51d4916a3e5d02
tree6b1fd71d03c3fb2d7183f31a2d2efd9418b9b2ea
parentc221bd6c15887ad97e4c32bf213a6de69ecaaf53
Fix TransportException when reading bundle

When reading a bundle file, commit messages who's oneline format is
longer than 982 characters caused JGit to treat subsequent text in
the commit as a SHA, then throw a TransportException because it's
not a valid SHA.

Now the readLine method will read all the way to the end of the
line, not just the first 1024 characters of it.

Change-Id: If15b491aa9a1e4fd9b8bbed2dd9e6be47a64ccb7
Signed-off-by: Chris Gavin <chris@chrisgavin.me>
org.eclipse.jgit/src/org/eclipse/jgit/transport/BundleFetchConnection.java