diff --git a/check-style.py b/check-style.py index 091f59bcb..5862e9b80 100755 --- a/check-style.py +++ b/check-style.py @@ -12,7 +12,7 @@ uncrustify_cfg = 'tools/uncrustify.cfg' def run_diff(sha): proc = subprocess.run( - ["git", "diff", "-U0", "--function-context", sha, "HEAD"], + ["git", "diff", "-U0", "--function-context", "--default-prefix", sha, "HEAD"], stdout=subprocess.PIPE, stderr=subprocess.STDOUT, encoding="utf-8",