Mark builds from a dirty tree as dirty.

Change-Id: I5833eee3d37cbbb114975a08f0e20d80c428f9fa
This commit is contained in:
Christian Aistleitner 2013-07-05 14:54:17 +02:00
parent 1c8a05d267
commit 0d67fb4d51

View File

@ -42,7 +42,7 @@ java_library(
# TODO(sop): Move git describe into an uncacheable genrule()
def git_describe():
import subprocess
cmd = ['git', 'describe', '--match', 'v[0-9].*', 'HEAD']
cmd = ['git', 'describe', '--match', 'v[0-9].*', '--dirty']
p = subprocess.Popen(cmd, stdout = subprocess.PIPE)
v = p.communicate()[0].strip()
r = p.returncode