projects
/
tools
/
git-buildpackage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
83e7791
)
deb: Decode changelog content when fetched from git
author
Guido Günther
<agx@sigxcpu.org>
Wed, 25 May 2022 21:07:11 +0000
(23:07 +0200)
committer
Guido Günther
<agx@sigxcpu.org>
Wed, 25 May 2022 21:09:37 +0000
(23:09 +0200)
When importing not form the upstream branch the changelog is fetched
via `git show`. Decode the bytes in that case.
Closes: #1004354
gbp/deb/__init__.py
patch
|
blob
|
history
diff --git
a/gbp/deb/__init__.py
b/gbp/deb/__init__.py
index b3a6b711032cd1b20f6a2d45df8a9ed859930aa0..627931d1779e5d5c7c6947ad8adda2bd68a0ab47 100644
(file)
--- a/
gbp/deb/__init__.py
+++ b/
gbp/deb/__init__.py
@@
-97,7
+97,7
@@
def parse_changelog_repo(repo, branch, filename):
except GitRepositoryError:
raise NoChangeLogError("Changelog %s not found in branch %s" % (filename, branch))
- return ChangeLog(repo.show(sha))
+ return ChangeLog(repo.show(sha)
.decode('utf-8')
)
def get_arch():