X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/f51e53726b39a177355a7917c91c56f390dda7ef..34a93a8d49951828dacd4237feda5db1f6ec854b:/scripts/migrate-black.py?ds=sidebyside 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), ],