]> source.dussan.org Git - jgit.git/commit
SubmoduleValidator: Always throw SubmoduleValidationException 48/130648/5
authorIvan Frade <ifrade@google.com>
Mon, 8 Oct 2018 20:37:42 +0000 (13:37 -0700)
committerIvan Frade <ifrade@google.com>
Tue, 9 Oct 2018 18:52:57 +0000 (11:52 -0700)
commit9372791fcf0e3350a457cf5cf0959ccd3fff95fe
tree471e8568fbe2c5d5f62144eca342e6ea192d9746
parent18dce03a4104b75980866fb21076ce1cc1706b3d
SubmoduleValidator: Always throw SubmoduleValidationException

The fsck test needs more detail about the error than an IOException
with an explanatory message.

Add an error identifier to the SubmoduleValidatorException and make
it the only throwable exception when parsing a file.

Change-Id: Ic3f0955b497e1681b25e681e1282e876cdf3d2c5
Signed-off-by: Ivan Frade <ifrade@google.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/ReceivePackAdvertiseRefsHookTest.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/submodule/SubmoduleValidator.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectChecker.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/BaseReceivePack.java