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:
committed by
Ondřej Caletka
parent
2f7776c0d1
commit
35d01a796e
@ -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,
|
||||
|
Reference in New Issue
Block a user