From 654fcc335c20431f60d3fde32e636aae38afe658 Mon Sep 17 00:00:00 2001 From: Laszlo Papp Date: Tue, 17 Jul 2012 15:21:45 +0100 Subject: Follow the protocol requests for webkit (special treatment for internal) It is currently not possible to successfully run the init-repository script with certain protocols, like "http", since those requests does not apply for qtwebkit. Hence, the cloning of qtwebkit fails behind the corporate rules which is against the original purpose of those command line options. If the requested protocol is "internal", then the replacement of qtwebkit should still be excluded since that would potentially cause breakages. Change-Id: I738738f1c367cf1b4f18ffed05f37715a78e94ae Reviewed-by: Rohan McGovern --- init-repository | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'init-repository') diff --git a/init-repository b/init-repository index 21c4de01..b5696f73 100755 --- a/init-repository +++ b/init-repository @@ -454,7 +454,7 @@ sub git_set_submodule_config if ($protocol) { # WebKit is special, and has only external link. - if ($key ne 'qtwebkit') { + if (!($key eq 'qtwebkit' && $protocol eq 'internal')) { # qt-labs projects are still hosted under qt internally. if ($protocol ne 'http') { $value =~ s,^git://gitorious\.org/qt-labs/,${url_base_for_protocol}qt/,; -- cgit v1.2.3