Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git: fix change testing when version is HEAD (ansible#3025)
When `version` is not specified, it defaults to "HEAD". "HEAD" is not a remote tag, and it's not listed in the output of get_branches(), so we'd keep repo_updated at the default value (None) and then return early with changed=True in --check mode, even when before == after. Fixes ansible#3024.
- Loading branch information