Add fetch_tags option to state git.latest

This commit is contained in:
Evan Heidtmann 2015-04-11 14:34:51 -07:00
parent 6ea06962c2
commit 779951e68d

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,