From ce45f45dfb8232b8ce599745ebd3bb7888fc4ea0 Mon Sep 17 00:00:00 2001 From: Jocelyn Turcotte Date: Wed, 13 Aug 2014 21:50:53 +0200 Subject: init-repository: Make sure that we update a submodule before we recurse Unless we do so, doing git submodule init in a submodule would use the currently checked out version of its .gitmodule instead of the one of its pinned SHA1. Change-Id: I88de421c8d24748dcaa5334c82da2aac4b12b2ad Reviewed-by: Andras Becsi --- init-repository | 1 + 1 file changed, 1 insertion(+) (limited to 'init-repository') diff --git a/init-repository b/init-repository index 4757f4f0..86d05d42 100755 --- a/init-repository +++ b/init-repository @@ -475,6 +475,7 @@ sub git_clone_all_submodules if ($line =~ /submodule\.([^.=]+)\.url=(.*)/) { $self->git_clone_one_submodule($1, $2); if ($1 eq "qtwebengine") { + $self->exe('git', 'submodule', 'update', $1); chdir($1) or confess "chdir $1: $OS_ERROR"; $self->exe('git', 'submodule', 'init'); $self->git_clone_all_submodules; -- cgit v1.2.3