Community
Participate
Working Groups
Further to bug 508801, the reported issue is still observed for the first submodule processed if that submodule has a name and a path which do not match. SubmoduleWalk.getModuleName() assumes that the modules config is already loaded. It does _not_ call lazyLoadModulesConfig(). SubmoduleWalk.getModuleName() returns the module path rather than the module name unless one of the methods which _does_ call lazyLoadModulesConfig() has been called previously on that instance of SubmoduleWalk. In the case of SubmoduleInitCommand.call(), re-ordering the calls to SubmoduleWalk.getModuleName() and SubmoduleWalk.getModuleUrl() is sufficient to workaround this issue, but it is not the correct fix.
Correction: In the case of SubmoduleInitCommand.call(), re-ordering the calls to SubmoduleWalk.getModuleName() and SubmoduleWalk.getRemoteUrl() is sufficient to workaround this issue, but it is not the correct fix.
New Gerrit change created: https://git.eclipse.org/r/c/jgit/jgit/+/168663
Gerrit change https://git.eclipse.org/r/c/jgit/jgit/+/168663 was merged to [master]. Commit: http://git.eclipse.org/c/jgit/jgit.git/commit/?id=f4b4dae2be1f6bb7e09a0c660e7fc8e093fb0617