Commit 2932a584 by Michael DeHaan

Merge pull request #6814 from lonerr/devel

Fixed cwd for submodules update
parents fe88fcb6 933fb349
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment