diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2016-10-10 10:26:22 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2016-10-10 11:35:00 -0700 |
commit | edaf3b342db4afa1c872da541fb0ac176a4e8ef9 (patch) | |
tree | b976073fdc2a6404cbdc3ee323a637e2e1b16846 /tensorflow/tools/git | |
parent | d1518c26530daaee854e73365bd7dfb9a2f69dbd (diff) |
Merge changes from github.
Change: 135698415
Diffstat (limited to 'tensorflow/tools/git')
-rwxr-xr-x | tensorflow/tools/git/gen_git_source.py | 5 |
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() |