X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/f51e53726b39a177355a7917c91c56f390dda7ef..edf66baa21d337ae069be3871e95f88b68a3ffcf:/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), ],