diff --git a/lib/python/qmk/git.py b/lib/python/qmk/git.py index f61e0bdb474..87cde9f427f 100644 --- a/lib/python/qmk/git.py +++ b/lib/python/qmk/git.py @@ -134,7 +134,8 @@ def git_check_deviation(active_branch): """Return True if branch has custom commits """ cli.run(['git', 'fetch', 'upstream', active_branch]) - deviations = cli.run(['git', '--no-pager', 'log', f'upstream/{active_branch}...{active_branch}']) + # As we only care about exit code, decode to bytes to avoid UnicodeDecodeError + deviations = cli.run(['git', '--no-pager', 'log', f'upstream/{active_branch}...{active_branch}'], text=False) return bool(deviations.returncode)