Skip to content

Commit 35d01a7

Browse files
dzoeposkar456
authored andcommitted
Apply whitespace check only on *.zone files.
1 parent 2f7776c commit 35d01a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dzonegit.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ def get_head(empty=False):
5656

5757
def check_whitespace_errors(against, revision=None):
5858
if revision:
59-
cmd = ["git", "diff-tree", "--check", against, revision]
59+
cmd = ["git", "diff-tree", "--check", against, revision, "*.zone"]
6060
else:
61-
cmd = ["git", "diff-index", "--check", "--cached", against]
61+
cmd = ["git", "diff-index", "--check", "--cached", against, "*.zone"]
6262
r = subprocess.run(
6363
cmd,
6464
stdout=subprocess.PIPE,

0 commit comments

Comments
 (0)