mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Git: indicate if remote url was changed or not (#5677)
This commit is contained in:
@@ -984,8 +984,7 @@ def main():
|
||||
remote_url_changed = remote_url and remote_url != repo and remote_url != unfrackgitpath(repo)
|
||||
else:
|
||||
remote_url_changed = set_remote_url(git_path, module, repo, dest, remote)
|
||||
if remote_url_changed:
|
||||
result.update(remote_url_changed=True)
|
||||
result.update(remote_url_changed=remote_url_changed)
|
||||
|
||||
if need_fetch:
|
||||
if module.check_mode:
|
||||
|
||||
Reference in New Issue
Block a user