aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2017-08-02 15:27:28 -0300
committerGuido Günther <agx@sigxcpu.org>2017-08-02 15:27:28 -0300
commitdf858953975dda21d5bdb669952a2a91d9ad1cbc (patch)
tree5f55017cf267c1ca73b20fc6a948f2a38134501b /examples
parent1b48fd1126d5509ebf0a74b983d7bdb82dca52ea (diff)
gbp-posttag-push: decode bytes
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/gbp-posttag-push4
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}