mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
modules/git: added --always parameter for git.describe().
This commit is contained in:
parent
91e095bb41
commit
c554b22fc8
1 changed files with 1 additions and 1 deletions
|
@ -1350,7 +1350,7 @@ def describe(cwd, rev='HEAD', user=None, ignore_retcode=False):
|
|||
cwd = _expand_path(cwd, user)
|
||||
if not isinstance(rev, six.string_types):
|
||||
rev = str(rev)
|
||||
command = ['git', 'describe', rev]
|
||||
command = ['git', 'describe', '--always', rev]
|
||||
return _git_run(command,
|
||||
cwd=cwd,
|
||||
runas=user,
|
||||
|
|
Loading…
Add table
Reference in a new issue