]> source.dussan.org Git - jgit.git/commit
SubmoduleValidator: Permit missing path or url 76/130576/2
authorJonathan Nieder <jrn@google.com>
Sun, 7 Oct 2018 21:55:52 +0000 (21:55 +0000)
committerJonathan Nieder <jrn@google.com>
Mon, 8 Oct 2018 21:40:56 +0000 (21:40 +0000)
commitd3eaf1007b42048bd507ee5634af571863b8e21d
tree6573f3850a238425b2e5e91e79e5c6bd40873237
parentdf8bd762a17c2459576104d7f81d7ecca962799d
SubmoduleValidator: Permit missing path or url

A .gitmodules file can include a submodule without a path to configure
the URL for a submodule that is only present on other branches.

A .gitmodules file can include a submodule with no URL and no path to
reserve the name for a submodule that existed in earlier history but
is not available from any URL any more.

"git fsck" permits both of these cases.  Permit them in JGit as well
(instead of throwing NullPointerException).

Change-Id: I3b442639ad79ea7a59227f96406a12e62d3573ae
Reported-by: David Pursehouse <david.pursehouse@gmail.com>
Signed-off-by: Jonathan Nieder <jrn@google.com>
org.eclipse.jgit/src/org/eclipse/jgit/internal/submodule/SubmoduleValidator.java