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>
pull/1683/head
Ernestas Kulik 8 years ago
parent 7dc747ea54
commit a13bde821f
  1. 2
      mesonbuild/wrap/wrap.py

@ -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…
Cancel
Save