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:
Phil Hord
2012-11-05 14:26:19 -05:00
parent b465b6d753
commit be07f9034f

View File

@@ -81,7 +81,7 @@ public class SubmoduleSectionParser {
&& branch != null && branch.length() > 0) {
// All required fields filled.
boolean urlIsRelative = url.startsWith("/");
boolean urlIsRelative = url.startsWith("../");
String server = null;
if (!urlIsRelative) {
// It is actually an URI. It could be ssh://localhost/project-a.