projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62af24c
)
gn build: Fix Python 3 write_vcsrevision script compatibility
author
Serge Guelton
<sguelton@redhat.com>
Tue, 5 Feb 2019 13:01:12 +0000
(13:01 +0000)
committer
Serge Guelton
<sguelton@redhat.com>
Tue, 5 Feb 2019 13:01:12 +0000
(13:01 +0000)
Trivial fix: decode was not called for all subprocess.check_output calls.
Commited on behalf of Andrew Boyarshin
Differential Revision: https://reviews.llvm.org/D57505
llvm-svn: 353168
llvm/utils/gn/build/write_vcsrevision.py
patch
|
blob
|
history
diff --git
a/llvm/utils/gn/build/write_vcsrevision.py
b/llvm/utils/gn/build/write_vcsrevision.py
index
974004d
..
5bdca23
100755
(executable)
--- a/
llvm/utils/gn/build/write_vcsrevision.py
+++ b/
llvm/utils/gn/build/write_vcsrevision.py
@@
-47,7
+47,7
@@
def main():
use_shell = True
git_dir = subprocess.check_output([git, 'rev-parse', '--git-dir'],
- cwd=LLVM_DIR, shell=use_shell).strip()
+ cwd=LLVM_DIR, shell=use_shell).
decode().
strip()
if not os.path.isdir(git_dir):
print('.git dir not found at "%s"' % git_dir, file=sys.stderr)
return 1