From 2af501eee9e0c6b45851aa8b3900dfa8070ffd96 Mon Sep 17 00:00:00 2001 From: Samuli Piippo Date: Tue, 16 Oct 2012 10:07:20 +0300 Subject: 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] Reviewed-by: Janne Anttila --- scripts/qt/qtmod_test.pl | 11 ++++++++--- 1 file 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 -- cgit v1.2.3