run git submodule commands earlier (#29664)
This commit is contained in:
parent
9bfa631d15
commit
f40cce22b0
|
@ -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']):
|
||||
|
|
Loading…
Reference in New Issue