1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/library
Jesse Keating 4593e3c357 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
..
cloud Create a common EC2 connection argument spec for EC2 modules 2014-02-06 15:27:41 +10:00
commands Adding no_log: capability for tasks 2014-01-31 16:58:46 -06:00
database Allow strings containing single and double quotes to be used as passwords for postgres_user 2014-02-03 17:07:17 -05:00
files Merge pull request #5363 from bcoca/acl_improved 2014-02-05 18:40:59 -05:00
internal ansible -> ansibleworks 2014-01-28 20:29:41 -05:00
inventory Make add_host clear the inventory pattern cache, add some more aliases. Fixes #4442. 2013-10-11 16:37:10 -04:00
messaging Use new syntax for module snippets in rabbitmq_policy and update changelog 2014-02-05 16:21:18 -05:00
monitoring module(nagios): don't catch SystemExit 2013-12-04 13:57:55 +01:00
net_infrastructure All modules should be using /usr/bin/python in the shebang as ansible_python_interpreter processes this (see FAQ). 2014-01-15 09:52:17 -05:00
network Clarify doc for get_url 2014-02-05 10:58:48 -08:00
notification ansible -> ansibleworks 2014-01-28 20:29:41 -05:00
packaging reword "except Error as e:" into "except Error, e:" to be compatible with Python 2.5 (#5852) 2014-02-03 13:00:40 -06:00
source_control Make sure requested version tag gets downloaded 2014-02-07 14:13:04 -08:00
system Merge pull request #5554 from ttarabul/devel 2014-02-04 10:59:19 -08:00
utilities Detect remote_user change in accelerate daemon and allow a restart 2014-01-30 14:40:41 -06:00
web_infrastructure Clean up stray space at the end of a line after a period. 2014-02-03 11:52:37 -06:00