Skip to content

Commit c46f39f

Browse files
committed
Fix git module checking out correct version after initial clone
Fixes ansible#313
1 parent 195e7c5 commit c46f39f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

source_control/git.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -646,6 +646,7 @@ def main():
646646
module.exit_json(changed=True, before=before, after=remote_head)
647647
# there's no git config, so clone
648648
clone(git_path, module, repo, dest, remote, depth, version, bare, reference, recursive)
649+
repo_updated = True
649650
elif not update:
650651
# Just return having found a repo already in the dest path
651652
# this does no checking that the repo is the actual repo

0 commit comments

Comments
 (0)