We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents dcd736a + 8c7f30a commit bfe2d06Copy full SHA for bfe2d06
1 file changed
main/githooks.py
@@ -318,7 +318,8 @@ def check_eol(files):
318
if '\0' in data:
319
continue
320
321
- if data.find('\r\n') != -1:
+ # Exception for .bat as they are only run in windows environments.
322
+ if data.find('\r\n') != -1 and not filename.endswith(".bat"):
323
_fail(f'Bad line endings in {filename}')
324
return 1
325
return 0
0 commit comments