Skip to content

Commit

Permalink
Have mach update (not just init) submodules as needed. Fix #3447
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonSapin committed Sep 21, 2014
1 parent fd5c6e8 commit f329de0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/servo/command_base.py
Expand Up @@ -79,7 +79,7 @@ def ensure_bootstrapped(self):
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])
Expand Down

0 comments on commit f329de0

Please sign in to comment.