modules/git: added --always parameter for git.describe().

This commit is contained in:
Erik Grinaker 2016-06-29 21:09:21 +01:00 committed by Erik Johnson
parent 91e095bb41
commit c554b22fc8

View file

@ -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,