summaryrefslogtreecommitdiffstats
path: root/init-repository
diff options
context:
space:
mode:
authorLaszlo Papp <lpapp@kde.org>2012-07-17 15:21:45 +0100
committerQt by Nokia <qt-info@nokia.com>2012-07-19 15:56:54 +0200
commit654fcc335c20431f60d3fde32e636aae38afe658 (patch)
treee589e518568c38bc93ca4e7142b488cd933a80b3 /init-repository
parente19caf122b2dd4d29119fb4d0367b1cf504c594c (diff)
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 <rohan.mcgovern@nokia.com>
Diffstat (limited to 'init-repository')
-rwxr-xr-xinit-repository2
1 files changed, 1 insertions, 1 deletions
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/,;