Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qt5-staging

* 'master' of git://scm.dev.nokia.troll.no/qt/qt5-staging:
  init-repository: avoid failure when combining `--force' and mirrors
This commit is contained in:
Qt Continuous Integration System
2011-05-06 17:27:05 +10:00

View File

@@ -479,6 +479,13 @@ sub git_clone_one_submodule
if ($mirror) {
$self->exe('git', 'config', 'remote.origin.url', $url);
# In `force' mode, remove the mirror if it already exists,
# since we may be reinitializing the module.
if ($self->{force}) {
eval { $self->exe('git', 'remote', 'rm', 'mirror'); }; # failure is OK
}
$self->exe('git', 'remote', 'add', 'mirror', $mirror);
}