Fixed cwd for submodules update

reviewable/pr18780/r1
Oleg A. Mamontov 11 years ago
parent c98f4c698c
commit 045eba960e

@ -389,7 +389,7 @@ def submodule_update(git_path, module, dest):
cmd = [ git_path, 'submodule', 'sync' ]
(rc, out, err) = module.run_command(cmd, check_rc=True, cwd=dest)
cmd = [ git_path, 'submodule', 'update', '--init', '--recursive' ,'--remote' ]
(rc, out, err) = module.run_command(cmd)
(rc, out, err) = module.run_command(cmd, cwd=dest)
if rc != 0:
module.fail_json(msg="Failed to init/update submodules")
return (rc, out, err)

Loading…
Cancel
Save