projects
/
platform
/
upstream
/
tensorflow.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2738d08
)
Fix Exception syntax.
author
Michael Case
<mikecase@google.com>
Mon, 16 Apr 2018 17:41:49 +0000
(10:41 -0700)
committer
Michael Case
<mikecase@google.com>
Mon, 16 Apr 2018 17:41:49 +0000
(10:41 -0700)
tensorflow/tools/git/gen_git_source.py
patch
|
blob
|
history
diff --git
a/tensorflow/tools/git/gen_git_source.py
b/tensorflow/tools/git/gen_git_source.py
index
2274d79
..
2151a75
100755
(executable)
--- a/
tensorflow/tools/git/gen_git_source.py
+++ b/
tensorflow/tools/git/gen_git_source.py
@@
-168,8
+168,8
@@
def get_git_version(git_base_path, git_tag_override):
split_val = val.split("-")
if len(split_val) != 3:
raise Exception(
-
"Expected git version in format 'tag-commits after tag-hash
' "
-
"but got '%s'",
val)
+
("Expected git version in format 'TAG-COMMITS AFTER TAG-HASH
' "
+
"but got '%s'") %
val)
split_val[0] = git_tag_override
val = bytes("-".join(split_val))
return val if val else unknown_label