From: Simon Ruderich Date: Wed, 13 Nov 2019 07:57:15 +0000 (+0100) Subject: shell: git-update-and-verify-submodule: convert to python3 X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;ds=sidebyside;h=ad8d81530da9a4f7c043ca2c3d7c9db34319e255;hp=130bff3478e28a690ee2c6745c5ca7c20821d9ea;p=config%2Fdotfiles.git shell: git-update-and-verify-submodule: convert to python3 --- diff --git a/shell/bin/git-update-and-verify-submodule b/shell/bin/git-update-and-verify-submodule index c4ba1f6..97159a4 100755 --- a/shell/bin/git-update-and-verify-submodule +++ b/shell/bin/git-update-and-verify-submodule @@ -1,6 +1,6 @@ -#!/usr/bin/python +#!/usr/bin/python3 -# Copyright (C) 2018 Simon Ruderich +# Copyright (C) 2018-2019 Simon Ruderich # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -27,13 +27,16 @@ repo_path = os.environ['OLDPWD'] submodule_path = os.getcwd() submodule = os.path.relpath(submodule_path, repo_path) -evtag = subprocess.check_output(['git-evtag-compute-py', sha1]).split('\n') +evtag = subprocess.check_output(['git-evtag-compute-py', sha1]) \ + .decode('ascii') \ + .split('\n') assert evtag[0].startswith('# git-evtag comment: ') assert evtag[1].startswith('Git-EVTag-v0-SHA512: ') os.chdir(repo_path) -log = subprocess.check_output(['git', 'log', '-1', '--', submodule]) +log = subprocess.check_output(['git', 'log', '-1', '--', submodule]) \ + .decode('ascii') found_comment = False found_evtag = False