diff options
author | Samuli Piippo <samuli.piippo@digia.com> | 2012-10-16 10:07:20 +0300 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-11-20 14:02:17 +0100 |
commit | 2af501eee9e0c6b45851aa8b3900dfa8070ffd96 (patch) | |
tree | 45c67f820cc11ee2971366f890b6ea44fd4f34e0 /scripts/qt | |
parent | 98e8f3b99b9a40c21feb50868da1b93295ed5c38 (diff) |
Use qtgitreadonly when cloning qt5.git
Instead of using gitorious directly, use the qtgitreadonly:
configuration to clone qt5.git if it is configured to git
Change-Id: Ie161a506bf30fd5331daa616a391e927275d72ae
Reviewed-by: Rohan McGovern [inactive] <rohan.mcgovern@nokia.com>
Reviewed-by: Janne Anttila <janne.anttila@digia.com>
Diffstat (limited to 'scripts/qt')
-rwxr-xr-x | scripts/qt/qtmod_test.pl | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/scripts/qt/qtmod_test.pl b/scripts/qt/qtmod_test.pl index 3a016643..c875a98c 100755 --- a/scripts/qt/qtmod_test.pl +++ b/scripts/qt/qtmod_test.pl @@ -315,9 +315,14 @@ sub new sub default_qt_repository { my ($self) = @_; - return ( $self->{'location'} ) - ? 'git://scm.dev.nokia.troll.no/qt/qt5.git' - : 'git://qt.gitorious.org/qt/qt5.git'; + my $have_qtgitreadonly; + if (0 == system(qw(git config --get-regexp ^url\..*\.insteadof$ ^qtgitreadonly:$))) { + $have_qtgitreadonly = 1; + } + + return ( $self->{'location'} ) ? 'git://scm.dev.nokia.troll.no/qt/qt5.git' + : ( $have_qtgitreadonly ) ? 'qtgitreadonly:qt/qt5.git' + : 'git://qt.gitorious.org/qt/qt5.git'; } sub default_qt_tests_enabled |