aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErnestas Kulik <ernestas.kulik@gmail.com>2017-04-25 19:32:44 +0300
committerErnestas Kulik <ernestas.kulik@gmail.com>2017-04-25 19:39:56 +0300
commita13bde821f53919fe6eb0ca14c4463afc08e5a27 (patch)
treebabce89a025be07dc86438e6a204346fe9a8fab7
parent7dc747ea54480c452b913e4bfe682ec67061c9bf (diff)
downloadmeson-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>
-rw-r--r--mesonbuild/wrap/wrap.py2
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' '):