FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Remove dirty tag when generating __version__ · codeplaysoftware/tensorflow@5a509df · GitHub

Repository navigation

Commit 5a509df

Browse files
authored andcommitted
Remove dirty tag when generating __version__
Change: 146740764
1 parent 983efe1 commit 5a509df

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎tensorflow/tools/git/gen_git_source.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def get_git_version(git_base_path):
149149
try:
150150
val = bytes(subprocess.check_output([
151151
"git", str("--git-dir=%s/.git" % git_base_path),
152-
str("--work-tree=" + git_base_path), "describe", "--long", "--dirty", "--tags"
152+
str("--work-tree=" + git_base_path), "describe", "--long", "--tags"
153153
]).strip())
154154
return val if val else unknown_label
155155
except subprocess.CalledProcessError:

‎tensorflow/tools/git/gen_git_source.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ if [[ -z "${OUTPUT_FILENAME}" ]]; then
2020
exit 1
2121
fi
2222

23-
GIT_VERSION=`git describe --long --dirty --tags`
23+
GIT_VERSION=`git describe --long --tags`
2424
if [[ $? != 0 ]]; then
2525
GIT_VERSION=unknown;
2626
fi

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL