aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/tools/git
diff options
context:
space:
mode:
authorGravatar Gunhan Gulsoy <gunan@google.com>2017-02-06 19:13:58 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-02-06 19:31:22 -0800
commit5a509dfce0c1af66ee13607f79b3700358d36f3b (patch)
treeb41a6bacef4c4c7b15fbba96978c3e04f1474b48 /tensorflow/tools/git
parent983efe163b9ff0fa1c5b843cf28a9f9d5fb83071 (diff)
Remove dirty tag when generating __version__
Change: 146740764
Diffstat (limited to 'tensorflow/tools/git')
-rwxr-xr-xtensorflow/tools/git/gen_git_source.py2
-rwxr-xr-xtensorflow/tools/git/gen_git_source.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/tensorflow/tools/git/gen_git_source.py b/tensorflow/tools/git/gen_git_source.py
index adc6bdbd17..c97ce7561f 100755
--- a/tensorflow/tools/git/gen_git_source.py
+++ b/tensorflow/tools/git/gen_git_source.py
@@ -149,7 +149,7 @@ def get_git_version(git_base_path):
try:
val = bytes(subprocess.check_output([
"git", str("--git-dir=%s/.git" % git_base_path),
- str("--work-tree=" + git_base_path), "describe", "--long", "--dirty", "--tags"
+ str("--work-tree=" + git_base_path), "describe", "--long", "--tags"
]).strip())
return val if val else unknown_label
except subprocess.CalledProcessError:
diff --git a/tensorflow/tools/git/gen_git_source.sh b/tensorflow/tools/git/gen_git_source.sh
index ce128822d7..1487658049 100755
--- a/tensorflow/tools/git/gen_git_source.sh
+++ b/tensorflow/tools/git/gen_git_source.sh
@@ -20,7 +20,7 @@ if [[ -z "${OUTPUT_FILENAME}" ]]; then
exit 1
fi
-GIT_VERSION=`git describe --long --dirty --tags`
+GIT_VERSION=`git describe --long --tags`
if [[ $? != 0 ]]; then
GIT_VERSION=unknown;
fi