Support submodule subscriptions where the URL ends with ".git"

Change-Id: I4039fe83e02725029bf31998638db908bb5a341b
This commit is contained in:
Kiall Mac Innes
2012-01-27 16:05:35 +00:00
parent d0dc9f5c4f
commit 531474abe1
2 changed files with 19 additions and 0 deletions

View File

@@ -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,