summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorLuca Coelho <luciano.coelho@intel.com>2018-09-20 14:28:33 +0300
committerJohannes Berg <johannes.berg@intel.com>2018-09-24 09:28:51 +0200
commit69e3674af1e62e8b470f4bb90b4f8c88852ae57d (patch)
tree4a8938b304e5bd995fde43562bb45cb1034edc50 /devel
parent2c8d25addbc99a9c72350671f39d86894d4c5637 (diff)
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 <luciano.coelho@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'devel')
-rwxr-xr-xdevel/git-tracker.py2
1 files changed, 2 insertions, 0 deletions
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