summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--library/source_control/git2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/source_control/git b/library/source_control/git
index 39e7ac60cb..fddb60b0c8 100644
--- a/library/source_control/git
+++ b/library/source_control/git
@@ -382,7 +382,7 @@ def main():
local_mods = False
if not os.path.exists(gitconfig):
if module.check_mode:
- remote_head = get_remote_head(git_path, module, dest, version, repo)
+ remote_head = get_remote_head(git_path, module, dest, version, remote, bare)
module.exit_json(changed=True, before=before, after=remote_head)
clone(git_path, module, repo, dest, remote, depth, version, bare, reference)
elif not update: