Mark builds from a dirty tree as dirty.
Change-Id: I5833eee3d37cbbb114975a08f0e20d80c428f9fa
This commit is contained in:
parent
1c8a05d267
commit
0d67fb4d51
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user