Skip to content

Commit

Permalink
Apply whitespace check only on *.zone files.
Browse files Browse the repository at this point in the history
  • Loading branch information
dzoep authored and oskar456 committed Dec 21, 2021
1 parent 2f7776c commit 35d01a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dzonegit.py
Expand Up @@ -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,
Expand Down

0 comments on commit 35d01a7

Please sign in to comment.