run git submodule commands earlier (#29664)

This commit is contained in:
Frédéric Péters 2019-01-11 14:04:02 +01:00
parent 9bfa631d15
commit f40cce22b0
1 changed files with 2 additions and 3 deletions

View File

@ -167,9 +167,6 @@ def prepare_build(dist, project, cmd_options, new):
if repo[0] == dist:
package["repository"] = repo[1]
package["copy_in_testing"] = False
# submodule management
call("git submodule init")
call("git submodule update")
# get package source name
control_file = os.path.join(debian_folder, 'control')
@ -428,6 +425,8 @@ def main():
os.chdir(git_project_path)
call("git checkout --quiet %s" % options.branch)
call("git pull")
call("git submodule init")
call("git submodule update")
project = get_project_infos(git_project_path, options)
if not os.path.exists(project['lock_path']):