Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jgit-dev] Re: [git#] Cloning error

Emeric Fermas <emeric.fermas@xxxxxxxxx> wrote:
> After some investigation, it looks like the "tools/GitSharp" TreeEntry
> points to a submodule.
> 
> AFAIK JGit doesn't support yet submodules which may explain this.
> Could anyone confirm this ?

Correct, it does not.
 
> However, maybe a nice NotSupportedException("submodule support is not
> implemented yet.") would have been much more explicit than a
> NullPointerException() ;-)

IIRC the code in question predates submodule support in Git itself,
and has not been touched since.  So at the time it was written,
this conditon was deemed to be impossible and thus not worthy of
an explicit exception handling.

-- 
Shawn.


Back to the top