X-Git-Url: https://ruderich.org/simon/gitweb/?p=config%2Fdotfiles.git;a=blobdiff_plain;f=shell%2Fbin%2Fgit-update-and-verify-submodule;h=97159a4e922b359b975273812ff3bb598bbc0555;hp=c4ba1f621d4e3bce1697ff5089977cdbe97f0547;hb=ad8d81530da9a4f7c043ca2c3d7c9db34319e255;hpb=130bff3478e28a690ee2c6745c5ca7c20821d9ea 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