check-style: Force the default prefix in git diff
Our match statements rely on the `b/` prefix so let's make sure we definitely get that one (i.e. undo diff.noprefix). Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3658>
This commit is contained in:
parent
a66b4c3da9
commit
d73c64a61c
1 changed files with 1 additions and 1 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue