summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@qt.io>2017-03-27 16:01:31 +0200
committerLiang Qi <liang.qi@qt.io>2017-04-06 09:20:33 +0000
commit315b76dc9b48456018490675339c084b9e17b2d0 (patch)
tree30e320be0c03efc38d0ede024f5678e3a9c4d307
parente7fc74d78121ecf7a9d14e8fb0e65cd441be3e83 (diff)
fix url normalization
after 8c0390143, we cannot rely on the denormalized segment starting with a slash any more. Task-number: QTBUG-59753 Change-Id: Ia3a3c005d1f41320747a60efc48a180caa88206b Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Valentin Fokin <fokinv@inf.u-szeged.hu>
-rwxr-xr-xinit-repository2
1 files changed, 1 insertions, 1 deletions
diff --git a/init-repository b/init-repository
index ff3390f8..861511b9 100755
--- a/init-repository
+++ b/init-repository
@@ -316,7 +316,7 @@ sub git_clone_all_submodules
my ($mod, $base) = ($1, $3);
next if ($base !~ /^\.\.\//);
$base = $my_repo_base.'/'.$base;
- while ($base =~ s,/(?!\.\./)[^/]+/\.\./,/,g) {}
+ while ($base =~ s,(?!\.\./)[^/]+/\.\./,,g) {}
$subbases{$mod} = $base;
} elsif ($2 eq "update") {
push @subset, '-'.$1 if ($3 eq 'none');