Fix relative URL detection in submodules
Relative submodules do not start with "/". Instead they start with "../". Fix the Submodule Subscriptions engine to recognize relative submodules. Bug: Issue 1312 Change-Id: Ia82e096fe78c7e78d6594c3cd183ac30f0f01dec Signed-off-by: Phil Hord <phil.hord@gmail.com>
This commit is contained in:
@@ -81,7 +81,7 @@ public class SubmoduleSectionParser {
|
|||||||
&& branch != null && branch.length() > 0) {
|
&& branch != null && branch.length() > 0) {
|
||||||
// All required fields filled.
|
// All required fields filled.
|
||||||
|
|
||||||
boolean urlIsRelative = url.startsWith("/");
|
boolean urlIsRelative = url.startsWith("../");
|
||||||
String server = null;
|
String server = null;
|
||||||
if (!urlIsRelative) {
|
if (!urlIsRelative) {
|
||||||
// It is actually an URI. It could be ssh://localhost/project-a.
|
// It is actually an URI. It could be ssh://localhost/project-a.
|
||||||
|
|||||||
Reference in New Issue
Block a user