aboutsummaryrefslogtreecommitdiff
path: root/contrib/gitian-build.py
diff options
context:
space:
mode:
authorChun Kuan Lee <ken2812221@gmail.com>2018-09-02 06:40:56 +0800
committerChun Kuan Lee <ken2812221@gmail.com>2018-09-02 21:40:51 +0800
commit5d62dcf9cfb5c0b2511c10667ed47ec3b3610d72 (patch)
tree889a75810b9d906e72597ef8ed533db2aa0ed31a /contrib/gitian-build.py
parentbdbd654df8ddf5945256f2ccf85feae620f6f0d5 (diff)
lint: Make sure we read the command line inputs using utf-8 decoding in python
Diffstat (limited to 'contrib/gitian-build.py')
-rwxr-xr-xcontrib/gitian-build.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/gitian-build.py b/contrib/gitian-build.py
index 0e53c3dfd5..a2792e6e25 100755
--- a/contrib/gitian-build.py
+++ b/contrib/gitian-build.py
@@ -209,7 +209,7 @@ def main():
subprocess.check_call(['git', 'fetch', args.url, 'refs/pull/'+args.version+'/merge'])
os.chdir('../gitian-builder/inputs/bitcoin')
subprocess.check_call(['git', 'fetch', args.url, 'refs/pull/'+args.version+'/merge'])
- args.commit = subprocess.check_output(['git', 'show', '-s', '--format=%H', 'FETCH_HEAD'], universal_newlines=True).strip()
+ args.commit = subprocess.check_output(['git', 'show', '-s', '--format=%H', 'FETCH_HEAD'], universal_newlines=True, encoding='utf8').strip()
args.version = 'pull-' + args.version
print(args.commit)
subprocess.check_call(['git', 'fetch'])