From #556 (comment)
If a submodule is not in the root folder of the parent repo then the link to the parent repo is not visible.
This line replaces too much. Maybe something like this is better (not tested):
var currentSubmodulePath = self.repoPath.substring(baseRepoPath.path.length);
for (var n = 0; n < submodules.length; n++) {
if (currentSubmodulePath.indexOf(submodules[n].path) === 0) {
self.isSubmodule(true);
self.parentModulePath(baseRepoPath.path);
self.parentModuleLink('/#/repository?path=' + encodeURIComponent(baseRepoPath.path));
return;
}
}
(Note: there might also be issues with windows backslash (\) path seperators)
From #556 (comment)
If a submodule is not in the root folder of the parent repo then the link to the parent repo is not visible.
This line replaces too much. Maybe something like this is better (not tested):
(Note: there might also be issues with windows backslash (
\) path seperators)