mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Fix git mod so that we switch to the desired version even if it was previously downloaded
This commit is contained in:
parent
59066f6138
commit
6f3f0904eb
1 changed files with 2 additions and 2 deletions
|
@ -688,8 +688,8 @@ def main():
|
|||
repo_updated = True
|
||||
|
||||
# switch to version specified regardless of whether
|
||||
# we cloned or pulled
|
||||
if repo_updated and not bare:
|
||||
# we got new revisions from the repository
|
||||
if not bare:
|
||||
switch_version(git_path, module, dest, remote, version)
|
||||
|
||||
# Deal with submodules
|
||||
|
|
Loading…
Reference in a new issue