wrap: initialize submodules when updating
After an initial checkout, submodules aren’t initialized and thus trying to update them fails. Partially fixes #1679 Signed-off-by: Ernestas Kulik <ernestas.kulik@gmail.com>
This commit is contained in:
parent
7dc747ea54
commit
a13bde821f
|
@ -159,7 +159,7 @@ class Resolver:
|
|||
return False
|
||||
# Submodule has not been added, add it
|
||||
if out.startswith(b'-'):
|
||||
if subprocess.call(['git', 'submodule', 'update', dirname]) != 0:
|
||||
if subprocess.call(['git', 'submodule', 'update', '--init', dirname]) != 0:
|
||||
return False
|
||||
# Submodule was added already, but it wasn't populated. Do a checkout.
|
||||
elif out.startswith(b' '):
|
||||
|
|
Loading…
Reference in New Issue