mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Merge pull request #22554 from ezheidtmann/fetch-tags-10141
Add `fetch_tags` option to state git.latest. See #10141
This commit is contained in:
commit
daaf8f90d5
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user