4 from subprocess
import check_call
6 from script
.helpers
import run_foreach_submodule
, 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
])
20 run_foreach_submodule('git submodule update --init', 'nottop')