diff options
author | Guido Günther <agx@sigxcpu.org> | 2017-08-02 15:27:28 -0300 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2017-08-02 15:27:28 -0300 |
commit | df858953975dda21d5bdb669952a2a91d9ad1cbc (patch) | |
tree | 5f55017cf267c1ca73b20fc6a948f2a38134501b | |
parent | 1b48fd1126d5509ebf0a74b983d7bdb82dca52ea (diff) |
gbp-posttag-push: decode bytes
-rwxr-xr-x | examples/gbp-posttag-push | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/gbp-posttag-push b/examples/gbp-posttag-push index 224d4e57..ac88c735 100755 --- a/examples/gbp-posttag-push +++ b/examples/gbp-posttag-push @@ -63,7 +63,7 @@ def get_push_targets(env): """get a list of push targets""" dests = {} cmd = "git config --get-regexp 'remote\..*\.push' '^%s(:.*)?$'" % env.branch - for remote in subprocess.Popen(cmd, stdout=subprocess.PIPE, shell=True).communicate()[0].split("\n"): + for remote in subprocess.Popen(cmd, stdout=subprocess.PIPE, shell=True).communicate()[0].decode().split("\n"): if not len(remote): continue repo, refspec = remote.split() @@ -79,7 +79,7 @@ def get_push_targets(env): def get_pull(env): """where did we pull from?""" cmd = 'git config --get branch."%s".remote' % env.branch - remote = subprocess.Popen(cmd, stdout=subprocess.PIPE, shell=True).communicate()[0].strip() + remote = subprocess.Popen(cmd, stdout=subprocess.PIPE, shell=True).communicate()[0].decode().strip() if not remote: remote = 'origin' return {remote: env.branch} |