1
0
mirror of https://github.com/oskar456/dzonegit.git synced 2024-05-11 05:55:41 +00:00

Apply whitespace check only on *.zone files.

This commit is contained in:
Dominik Pantůček
2021-12-19 18:11:05 +01:00
committed by Ondřej Caletka
parent 2f7776c0d1
commit 35d01a796e

View File

@ -56,9 +56,9 @@ def get_head(empty=False):
def check_whitespace_errors(against, revision=None):
if revision:
cmd = ["git", "diff-tree", "--check", against, revision]
cmd = ["git", "diff-tree", "--check", against, revision, "*.zone"]
else:
cmd = ["git", "diff-index", "--check", "--cached", against]
cmd = ["git", "diff-index", "--check", "--cached", against, "*.zone"]
r = subprocess.run(
cmd,
stdout=subprocess.PIPE,