diff options
author | Ernestas Kulik <ernestas.kulik@gmail.com> | 2017-04-25 19:32:44 +0300 |
---|---|---|
committer | Ernestas Kulik <ernestas.kulik@gmail.com> | 2017-04-25 19:39:56 +0300 |
commit | a13bde821f53919fe6eb0ca14c4463afc08e5a27 (patch) | |
tree | babce89a025be07dc86438e6a204346fe9a8fab7 /mesonbuild/wrap/wrap.py | |
parent | 7dc747ea54480c452b913e4bfe682ec67061c9bf (diff) | |
download | meson-a13bde821f53919fe6eb0ca14c4463afc08e5a27.zip meson-a13bde821f53919fe6eb0ca14c4463afc08e5a27.tar.gz meson-a13bde821f53919fe6eb0ca14c4463afc08e5a27.tar.bz2 |
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>
Diffstat (limited to 'mesonbuild/wrap/wrap.py')
-rw-r--r-- | mesonbuild/wrap/wrap.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/wrap/wrap.py b/mesonbuild/wrap/wrap.py index 67e4700..9e5910b 100644 --- a/mesonbuild/wrap/wrap.py +++ b/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' '): |