X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/f51e53726b39a177355a7917c91c56f390dda7ef..1b028cc9d99c2c2e82f9b727742539173a92a373:/scripts/migrate-black.py diff --git a/scripts/migrate-black.py b/scripts/migrate-black.py index 1183cb8..ff52939 100755 --- a/scripts/migrate-black.py +++ b/scripts/migrate-black.py @@ -5,7 +5,7 @@ import logging import os import sys -from subprocess import check_output, run, Popen, PIPE +from subprocess import PIPE, Popen, check_output, run def git(*args: str) -> str: @@ -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), ],