nicer deploy versions for git repos if tags are available

This commit is contained in:
Artem Bogomyagkov 2012-09-12 12:39:04 +03:00
parent 7ace23c385
commit 7685cb14a4
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ def _get_version(target, opts):
p = Popen(['hg', 'tip', '--template', '{rev}'], stdout=PIPE)
return 'r%s' % p.communicate()[0]
elif version == 'GIT':
p = Popen(['git', 'rev-parse', 'HEAD'], stdout=PIPE)
p = Popen(['git', 'describe', '--always'], stdout=PIPE)
return '%s' % p.communicate()[0].strip('\n')
elif version:
return version