Add the git tag to the compile (RIPD-238)

This commit is contained in:
Tom Ritchford
2014-08-08 14:28:44 -04:00
committed by Vinnie Falco
parent 50f9b68d61
commit c841f8b360
5 changed files with 398 additions and 79 deletions

View File

@@ -79,7 +79,10 @@ class Git(object):
def __init__(self, env):
self.exists = env.Detect('git')
if self.exists:
self.commit_id = _execute('git describe --tags')
try:
self.commit_id = _execute('git describe --tags')
except:
self.exists = False
else:
self.commit_id = None