mirror of
https://github.com/servo/servo.git
synced 2025-06-20 15:18:58 +01:00
Have mach update (not just init) submodules as needed. Fix #3447
This commit is contained in:
parent
fd5c6e8512
commit
f329de0581
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ class CommandBase(object):
|
||||||
submodules = subprocess.check_output(["git", "submodule", "status"])
|
submodules = subprocess.check_output(["git", "submodule", "status"])
|
||||||
for line in submodules.split('\n'):
|
for line in submodules.split('\n'):
|
||||||
components = line.strip().split(' ')
|
components = line.strip().split(' ')
|
||||||
if len(components) > 1 and components[0].startswith('-'):
|
if len(components) > 1 and components[0].startswith(('-', '+')):
|
||||||
module_path = components[1]
|
module_path = components[1]
|
||||||
subprocess.check_call(["git", "submodule", "update",
|
subprocess.check_call(["git", "submodule", "update",
|
||||||
"--init", "--recursive", "--", module_path])
|
"--init", "--recursive", "--", module_path])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue