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>
This commit is contained in:
Laszlo Papp
2012-07-17 15:21:45 +01:00
committed by Qt by Nokia
parent e19caf122b
commit 654fcc335c

View File

@@ -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/,;