ansible/source_control
Jesse Keating c6f4d4328b Make sure requested version tag gets downloaded
There is a subtle bug in how the git module currently works. If the
version you request is a tag name, and you've already got the repo
cloned, and the tag name is a new tag, but refers to the already checked
out working copy, the git module would exit early without change. This
is bad as it means the new tag ref was not fetched and could not be used
in later tasks.

This change will check if the version is a remote tag, and if the tag
doesn't exist locally. If that is true, it'll do a fetch.

The activity could still be seen as not a change, because the working
copy won't be updated, if the new tag refers to the already checked out
copy, but that's not different than before and can be fixed as a more
comprehensive overhaul of tracking change in the git module.
2014-02-07 14:13:04 -08:00
..
bzr Fixes #5023 Convert all modules to use new snippet import pattern 2013-12-02 15:11:23 -05:00
git Make sure requested version tag gets downloaded 2014-02-07 14:13:04 -08:00
github_hooks Fixes #5023 Convert all modules to use new snippet import pattern 2013-12-02 15:11:23 -05:00
hg Don't modify hgrc when running purge 2013-12-02 23:50:33 -08:00
subversion subversion: use LANG=C to prevent regex failures 2014-01-15 10:05:31 +01:00