diff options
Diffstat (limited to 'scripts/format_code.py')
-rwxr-xr-x | scripts/format_code.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/format_code.py b/scripts/format_code.py index 29dbea7f0d..b456bd4359 100755 --- a/scripts/format_code.py +++ b/scripts/format_code.py @@ -216,7 +216,7 @@ class FormatCodeRun: if strategy == "git-head": cmd = "git diff-tree --no-commit-id --name-status -r HEAD | grep \"^[AMRT]\" | cut -f 2" elif strategy == "git-diff": - cmd = "git diff --name-status --cached -r HEAD | grep \"^[AMRT]\" | cut -f 2" + cmd = "git diff --name-status --cached -r HEAD | grep \"^[AMRT]\" | rev | cut -f 1 | rev" else: cmd = "git ls-tree -r HEAD --name-only" # Skip copyright checks when running on all files because we don't know when they were last modified |