diff options
author | Xiaoqiang Zheng <zhengxq@google.com> | 2016-10-28 10:29:28 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2016-10-28 11:38:26 -0700 |
commit | e2d51a87f0727f8537b46048d8241aeebb6e48d6 (patch) | |
tree | 64c075f59bae00706a009e5d1ed15aaff6adc6ff /tensorflow/tools/git | |
parent | f80ef2d696456c970956f47e7d5aa88bc7ccbdce (diff) |
Merge changes from github.
Change: 137532946
Diffstat (limited to 'tensorflow/tools/git')
-rwxr-xr-x | tensorflow/tools/git/gen_git_source.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/tools/git/gen_git_source.py b/tensorflow/tools/git/gen_git_source.py index db9de3f816..267bcad816 100755 --- a/tensorflow/tools/git/gen_git_source.py +++ b/tensorflow/tools/git/gen_git_source.py @@ -147,7 +147,7 @@ def get_git_version(git_base_path): """ unknown_label = b"unknown" try: - val = subprocess.check_output(["git", "-C", git_base_path, "describe", + val = subprocess.check_output(["git", str("--git-dir="+git_base_path+"/.git"), str("--work-tree="+git_base_path), "describe", "--long", "--dirty", "--tags"]).strip() return val if val else unknown_label except subprocess.CalledProcessError: |