mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix git module checking out correct version after initial clone
Fixes #313
This commit is contained in:
parent
1af6a85492
commit
3e09de7aef
1 changed files with 1 additions and 0 deletions
|
@ -646,6 +646,7 @@ def main():
|
|||
module.exit_json(changed=True, before=before, after=remote_head)
|
||||
# there's no git config, so clone
|
||||
clone(git_path, module, repo, dest, remote, depth, version, bare, reference, recursive)
|
||||
repo_updated = True
|
||||
elif not update:
|
||||
# Just return having found a repo already in the dest path
|
||||
# this does no checking that the repo is the actual repo
|
||||
|
|
Loading…
Reference in a new issue