diff options
author | Corey Farwell <coreyf@rwell.org> | 2015-05-31 17:25:26 -0400 |
---|---|---|
committer | Corey Farwell <coreyf@rwell.org> | 2015-05-31 17:25:26 -0400 |
commit | 9708a386fc9e4645d8972f2ef3e73b320da3b512 (patch) | |
tree | 5dd15f301fa23a801399e69c127aa74e60589f5a /python | |
parent | c63fc4dc13a23cf5b9f8c0972111b3f9436d2143 (diff) | |
download | servo-9708a386fc9e4645d8972f2ef3e73b320da3b512.tar.gz servo-9708a386fc9e4645d8972f2ef3e73b320da3b512.zip |
DRY submodule updating by utilizing existing update-submodules command
This might allow us to merge #5648
Diffstat (limited to 'python')
-rw-r--r-- | python/servo/command_base.py | 10 |
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( |