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 0857c6350d
commit 8b59a2f6b6

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