5 from subprocess
import check_call
7 from script
.helpers
import GitWrapper
12 check_call('git pull'.split())
13 config
= git
.get_config()
14 submodules
= git
.get_submodules()
15 # Update existing submodules, but don't check out new ones
17 if not 'submodule.%s.url' % p
in config
:
19 if not path
.exists(path
.join(p
, '.git')):
21 check_call('git submodule update'.split() + [p
])
23 check_call('git submodule update --init'.split())
24 git
.foreach_submodule(cmd
)