mirror of
git://code.qt.io/qt/qt5.git
synced 2026-01-07 15:36:54 +08:00
init-repository: Allow 'tqtc-' prefix for qt5 repository
Change-Id: Ic4b14e4e6efd43e54a241000e090981ce8b6c651
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
(cherry picked from commit 6f7f1cd550)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
committed by
Qt Cherry-pick Bot
parent
61cc4367ed
commit
ad62610ca0
@@ -645,12 +645,13 @@ sub run
|
||||
chomp(my $url = `git config remote.origin.url`);
|
||||
die("Have no origin remote.\n") if (!$url);
|
||||
$url =~ s,\.git$,,;
|
||||
$url =~ s/qt5$//;
|
||||
$url =~ s/((?:tqtc-)?qt5)$//;
|
||||
my $qtrepo = $1 or 'qt5';
|
||||
$self->{'base-url'} = $url;
|
||||
|
||||
$self->git_clone_all_submodules('qt5', $self->{branch}, $self->{alternates}, @{$self->{'module-subset'}});
|
||||
$self->git_clone_all_submodules($qtrepo, $self->{branch}, $self->{alternates}, @{$self->{'module-subset'}});
|
||||
|
||||
$self->git_add_remotes('qt5');
|
||||
$self->git_add_remotes($qtrepo);
|
||||
|
||||
$self->git_install_hooks;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user