Have init-repository init nested submodule in qtdeclarative
authorAlan Alpert <alan.alpert@nokia.com>
Tue, 21 Jun 2011 06:54:22 +0000 (16:54 +1000)
committerAlan Alpert <alan.alpert@nokia.com>
Tue, 21 Jun 2011 06:54:22 +0000 (16:54 +1000)
qtdeclarative is expected to gain a nested submodule soon. This change
makes init-repository checkout that submodule as well.

Reviewed-by: Rohan McGovern
init-repository

index 15dc26d..c41f1c9 100755 (executable)
@@ -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;