From 69e3674af1e62e8b470f4bb90b4f8c88852ae57d Mon Sep 17 00:00:00 2001 From: Luca Coelho Date: Thu, 20 Sep 2018 14:28:33 +0300 Subject: backport: convert tree section names to ascii For some reason, sometimes when the git logs contain non-ascii characters, we get some conversion errors. This only happens if one of the strings we use is explicitly unicode, otherwise everything is fine. The only string we use that is of unicode type is the tree names that comes from the configuration sections. To avoid issues, convert the strings we get from the config file into ascii before using it. Signed-off-by: Luca Coelho Signed-off-by: Johannes Berg --- devel/git-tracker.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/devel/git-tracker.py b/devel/git-tracker.py index 1789ad97..ad17c8cc 100755 --- a/devel/git-tracker.py +++ b/devel/git-tracker.py @@ -190,6 +190,8 @@ if __name__ == '__main__': backport_rev = git.rev_parse(tree=source_dir) for tree in trees: + # make sure tree is str (rather than unicode object) to prevent conversion problems + tree = str(tree) input = config.get(tree, 'input') output = config.get(tree, 'output') defconfig = None -- cgit v1.2.3