Patch Set 3:

> Also, I think the default remote also needs to be considered as the parent path of relative urls.
> 
> https://github.com/git/git/blob/master/git-submodule.sh#L34-68

Thanks. Unfortunately, I don't understand what the remote url of the master repository has to do with the url of the submodule. Due to lack of shell scripting knowledge I haven't also been able to completely figure out what resolve_relative_path does. :-(

Maybe someone alese with more knowledge of Git submodules could follow up on this patch to make it really behave like native Git.

Furthermore, I noticed that msysgit uses '/' instead of '\' in the url on Windows, otherwise complaning about an invalid .git/config file. I think jgit should use '/' as well on Windows. Is there a preferred way to check for the platform in jgit?