summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
4cbc319)
the .gitmodules of tagged commits typically refers to a release branch
which was deleted shortly after the release. consequently, git clone
--branch is bound to fail.
of course, cloning a fixed sha1/tag requires no branch in the first
place, so revert back to using git clone --no-checkout in that case.
amends
ac6168c0c.
Task-number: QTBUG-49133
Change-Id: Ica032f1d07a70ad89f16b23bdf5cdab785612fdc
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
}
foreach my $module (@modules) {
}
foreach my $module (@modules) {
- $self->git_clone_one_submodule($subdirs{$module}, $subbases{$module}, $subbranches{$module});
+ $self->git_clone_one_submodule($subdirs{$module}, $subbases{$module},
+ $co_branch && $subbranches{$module});
my $do_clone = (! -e "$submodule/.git");
if ($do_clone) {
my $do_clone = (! -e "$submodule/.git");
if ($do_clone) {
- push @reference_args, '--branch', $branch if ($branch);
+ if ($branch) {
+ push @reference_args, '--branch', $branch;
+ } else {
+ push @reference_args, '--no-checkout';
+ }
$self->exe('git', 'clone', @reference_args,
($mirror ? $mirror : $url), $submodule);
}
$self->exe('git', 'clone', @reference_args,
($mirror ? $mirror : $url), $submodule);
}