Support submodule subscriptions where the URL ends with ".git"
Change-Id: I4039fe83e02725029bf31998638db908bb5a341b
This commit is contained in:
@@ -103,6 +103,10 @@ public class SubmoduleSectionParser {
|
||||
fromIndex = urlExtractedPath.lastIndexOf('/', fromIndex - 1);
|
||||
projectName = urlExtractedPath.substring(fromIndex + 1);
|
||||
|
||||
if (projectName.endsWith(".git")) {
|
||||
projectName = projectName.substring(0, projectName.length() - 4);
|
||||
}
|
||||
|
||||
if (repoManager.list().contains(new Project.NameKey(projectName))) {
|
||||
return new SubmoduleSubscription(
|
||||
superProjectBranch,
|
||||
|
||||
Reference in New Issue
Block a user