aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/tools/git
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2016-10-10 10:26:22 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2016-10-10 11:35:00 -0700
commitedaf3b342db4afa1c872da541fb0ac176a4e8ef9 (patch)
treeb976073fdc2a6404cbdc3ee323a637e2e1b16846 /tensorflow/tools/git
parentd1518c26530daaee854e73365bd7dfb9a2f69dbd (diff)
Merge changes from github.
Change: 135698415
Diffstat (limited to 'tensorflow/tools/git')
-rwxr-xr-xtensorflow/tools/git/gen_git_source.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tensorflow/tools/git/gen_git_source.py b/tensorflow/tools/git/gen_git_source.py
index 3d2464a744..8b02c09064 100755
--- a/tensorflow/tools/git/gen_git_source.py
+++ b/tensorflow/tools/git/gen_git_source.py
@@ -138,10 +138,9 @@ def get_git_version(git_base_path):
Args:
git_base_path: where the .git directory is located
Returns:
- A string representing the git version
+ A bytestring representing the git version
"""
-
- unknown_label = "unknown"
+ unknown_label = b"unknown"
try:
val = subprocess.check_output(["git", "-C", git_base_path, "describe",
"--long", "--dirty", "--tags"]).strip()