From 72a25591b04b40d1c9b67844120457297c93ecb8 Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Wed, 14 Sep 2022 05:06:54 +0200 Subject: [PATCH] [FIX] migrate-black.py: don't fail on binary files (#3266) --- scripts/migrate-black.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/migrate-black.py b/scripts/migrate-black.py index 63cc5096a93..ff52939460c 100755 --- a/scripts/migrate-black.py +++ b/scripts/migrate-black.py @@ -49,6 +49,7 @@ def blackify(base_branch: str, black_command: str, logger: logging.Logger) -> in [ "git", "diff", + "--binary", "--find-copies", "%s-black..%s-black" % (last_commit, commit), ],