aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/command_base.py
diff options
context:
space:
mode:
authorbors-servo <metajack+bors@gmail.com>2015-05-31 20:40:21 -0500
committerbors-servo <metajack+bors@gmail.com>2015-05-31 20:40:21 -0500
commit1d19338a93348c4e817a0b1619dc236881ba18f6 (patch)
tree6bbe5caa26a9d6fe54fc9dc2c2ea3f940784209e /python/servo/command_base.py
parentce3debbc82e14523657974d1f6110e22272a178e (diff)
parent9708a386fc9e4645d8972f2ef3e73b320da3b512 (diff)
downloadservo-1d19338a93348c4e817a0b1619dc236881ba18f6.tar.gz
servo-1d19338a93348c4e817a0b1619dc236881ba18f6.zip
Auto merge of #6232 - frewsxcv:update-submodules-dry, r=jdm
This might allow us to merge #5648 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6232) <!-- Reviewable:end -->
Diffstat (limited to 'python/servo/command_base.py')
-rw-r--r--python/servo/command_base.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/python/servo/command_base.py b/python/servo/command_base.py
index a46fd21dfc1..185b716165d 100644
--- a/python/servo/command_base.py
+++ b/python/servo/command_base.py
@@ -224,15 +224,7 @@ class CommandBase(object):
if self.context.bootstrapped:
return
- subprocess.check_call(["git", "submodule", "--quiet", "sync", "--recursive"])
- 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(('-', '+')):
- module_path = components[1]
- subprocess.check_call(["git", "submodule", "update",
- "--init", "--recursive",
- "--", module_path])
+ Registrar.dispatch("update-submodules", context=self.context)
if not self.config["tools"]["system-rust"] and \
not path.exists(path.join(