From 933fb349f15b9ae93dabe8a2f1a4cbe0f5dd3844 Mon Sep 17 00:00:00 2001 From: "Oleg A. Mamontov" Date: Wed, 2 Apr 2014 13:21:26 +0400 Subject: [PATCH] Fixed cwd for submodules update --- library/source_control/git | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/source_control/git b/library/source_control/git index 63539f624f..8fffdbfaf8 100644 --- a/library/source_control/git +++ b/library/source_control/git @@ -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)