mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
forcing git fetch if sha1 are equal between repos but branch exists only at remote
Add an explanatory comment to the code
This commit is contained in:
parent
3afaa2fef4
commit
9c6db69827
1 changed files with 3 additions and 1 deletions
|
@ -762,6 +762,8 @@ def main():
|
||||||
if version in get_tags(git_path, module, dest):
|
if version in get_tags(git_path, module, dest):
|
||||||
repo_updated = False
|
repo_updated = False
|
||||||
else:
|
else:
|
||||||
|
# if the remote is a branch and we have the branch locally, exit early
|
||||||
|
if version in get_branches(git_path, module, dest):
|
||||||
repo_updated = False
|
repo_updated = False
|
||||||
if repo_updated is None:
|
if repo_updated is None:
|
||||||
if module.check_mode:
|
if module.check_mode:
|
||||||
|
|
Loading…
Reference in a new issue