From f329de058122eb62abc886cac08e90a434a6fe00 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Mon, 22 Sep 2014 00:16:52 +0100 Subject: [PATCH] Have mach update (not just init) submodules as needed. Fix #3447 --- python/servo/command_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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])