diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2014-09-22 00:16:52 +0100 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2014-09-22 00:16:52 +0100 |
commit | f329de058122eb62abc886cac08e90a434a6fe00 (patch) | |
tree | 341f1483a0044a292184b31f9d09769492e1983b /python/servo/command_base.py | |
parent | fd5c6e8512d379751cca1bf82ea735adacdf681e (diff) | |
download | servo-f329de058122eb62abc886cac08e90a434a6fe00.tar.gz servo-f329de058122eb62abc886cac08e90a434a6fe00.zip |
Have mach update (not just init) submodules as needed. Fix #3447
Diffstat (limited to 'python/servo/command_base.py')
-rw-r--r-- | python/servo/command_base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/servo/command_base.py b/python/servo/command_base.py index 5d15494a4e7..a5b4a555190 100644 --- a/python/servo/command_base.py +++ b/python/servo/command_base.py @@ -79,7 +79,7 @@ class CommandBase(object): submodules = subprocess.check_output(["git", "submodule", "status"]) for line in submodules.split('\n'): components = line.strip().split(' ') - if len(components) > 1 and components[0].startswith('-'): + if len(components) > 1 and components[0].startswith(('-', '+')): module_path = components[1] subprocess.check_call(["git", "submodule", "update", "--init", "--recursive", "--", module_path]) |