mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
Merge pull request #674 from bergundy/develop
switch submodule init/update to a single line
This commit is contained in:
commit
60e181bf9e
|
@ -214,8 +214,7 @@ class Git(VersionControl):
|
|||
def update_submodules(self, location):
|
||||
if not os.path.exists(os.path.join(location, '.gitmodules')):
|
||||
return
|
||||
call_subprocess([self.cmd, 'submodule', 'init', '-q'], cwd=location)
|
||||
call_subprocess([self.cmd, 'submodule', 'update', '--recursive', '-q'],
|
||||
call_subprocess([self.cmd, 'submodule', 'update', '--init', '--recursive', '-q'],
|
||||
cwd=location)
|
||||
|
||||
vcs.register(Git)
|
||||
|
|
Loading…
Reference in a new issue