]> source.dussan.org Git - jgit.git/commit
ManifestParser: Throw exception if remote does not have fetch attribute 23/94523/3
authorHan-Wen Nienhuys <hanwen@google.com>
Thu, 6 Apr 2017 04:44:10 +0000 (13:44 +0900)
committerMatthias Sohn <matthias.sohn@sap.com>
Mon, 10 Apr 2017 13:08:32 +0000 (15:08 +0200)
commit84d855cda7fc3f061778ea54b4f7ea569a75d7c3
tree995dc4f9aa01e010d4fe61a9a6f06ffdcd935f95
parent52be84aea5f39d07e855a8d3dd8a1b8e97bd1de8
ManifestParser: Throw exception if remote does not have fetch attribute

In the repo manifest documentation [1] the fetch attribute is marked
as "#REQUIRED".

If the fetch attribute is not specified, this would previously result in
NullPointerException. Throw a SAXException instead.

[1] https://gerrit.googlesource.com/git-repo/+/master/docs/manifest-format.txt

Change-Id: Ib8ed8cee6074fe6bf8f9ac6fc7a1664a547d2d49
Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/gitrepo/ManifestParserTest.java
org.eclipse.jgit/resources/org/eclipse/jgit/gitrepo/internal/RepoText.properties
org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/ManifestParser.java
org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/internal/RepoText.java