]> source.dussan.org Git - jgit.git/commit
FirstWant: tighten first-want line validation 20/130820/9
authorIvan Frade <ifrade@google.com>
Thu, 11 Oct 2018 00:02:49 +0000 (17:02 -0700)
committerIvan Frade <ifrade@google.com>
Fri, 12 Oct 2018 22:41:00 +0000 (15:41 -0700)
commite82cb5a6d32666a2e01a48088a0b830213a9ff3e
tree0e17d3f2e03c1b0b5050bcc3f24fa1b88d0e9811
parent208a3fc8e128bf54afaeb48d6b39f4c46f588452
FirstWant: tighten first-want line validation

First-want line parsing accepts lines with an optional whitespace, when
the spec is strict requiring a white space.

Validate the line enforcing that there is a white space between oid and
capabilities list.

Change-Id: I45ada67030e0720f9b402c298be18c7518c799b1
Signed-off-by: Ivan Frade <ifrade@google.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/transport/parser/FirstWantTest.java
org.eclipse.jgit/resources/org/eclipse/jgit/internal/JGitText.properties
org.eclipse.jgit/src/org/eclipse/jgit/internal/JGitText.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/transport/parser/FirstWant.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java