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