Have init-repository init nested submodule in qtdeclarative

qtdeclarative is expected to gain a nested submodule soon. This change
makes init-repository checkout that submodule as well.

Reviewed-by: Rohan McGovern
This commit is contained in:
Alan Alpert
2011-06-21 16:54:22 +10:00
parent d8b73a8ba0
commit 8484878f25

View File

@@ -579,6 +579,11 @@ sub git_clone_one_submodule
unlink($alternates_path) || confess "unlink $alternates_path: $OS_ERROR";
}
if ($submodule eq "qtdeclarative") { #Extra step needed to setup declarative
$self->exe('git', 'submodule', 'init');
$self->exe('git', 'submodule', 'update');
}
chdir("..") or confess "cd ..: $OS_ERROR";
return;