ソースを参照

Merge remote-tracking branch 'origin/master' into develop

QMK Bot 1 週間 前
コミット
e8af454d20
1 ファイル変更2 行追加1 行削除
  1. 2 1
      lib/python/qmk/git.py

+ 2 - 1
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)