diff options
author | Maximiliano Curia <maxy@gnuservers.com.ar> | 2017-08-06 21:29:25 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2017-08-06 16:50:48 -0300 |
commit | b7455ad08a4435ec61e3c2c9cd43126ea1468f32 (patch) | |
tree | 692c0eac3b24ce87e6f1a5da763651a6381ec2a3 /gbp/deb/git.py | |
parent | 698e7bf6cb34cd89f2a6ad231abdbe0977db64f9 (diff) |
find_version: add a missing decode
_git_getoutput returns a list of bytes, that we need to decode
Diffstat (limited to 'gbp/deb/git.py')
-rw-r--r-- | gbp/deb/git.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gbp/deb/git.py b/gbp/deb/git.py index ee0390ae..9bada975 100644 --- a/gbp/deb/git.py +++ b/gbp/deb/git.py @@ -95,6 +95,7 @@ class DebianGitRepository(PkgGitRepository): if ret: return None for line in out: + line = line.decode() if line.endswith(" %s\n" % version): # dereference to a commit object return self.rev_parse("%s^0" % legacy_tag) |