Merge pull request #22554 from ezheidtmann/fetch-tags-10141

Add `fetch_tags` option to state git.latest. See #10141
This commit is contained in:
Justin Findlay 2015-04-12 16:29:32 -06:00
commit daaf8f90d5

View File

@ -48,6 +48,7 @@ def latest(name,
bare=False,
remote_name='origin',
always_fetch=False,
fetch_tags=True,
depth=None,
identity=None,
https_user=None,
@ -230,6 +231,9 @@ def latest(name,
else:
fetch_opts = ''
if fetch_tags:
fetch_opts += ' --tags'
# check remote if fetch_url not == name set it
remote = __salt__['git.remote_get'](target,
remote=remote_name,