Check git mode also in WSL

This commit is contained in:
Erik Montnemery 2020-08-17 22:09:21 +02:00 committed by GitHub
parent e1668fe86a
commit c77bff12b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,6 @@
"""Check that executable text files have a shebang."""
import argparse
import platform
import shlex
import sys
from typing import List
@ -21,7 +22,7 @@ def zsplit(s: str) -> List[str]:
def check_executables(paths: List[str]) -> int:
if sys.platform == 'win32': # pragma: win32 cover
if sys.platform == 'win32' or "microsoft" in platform.uname()[3].lower(): # pragma: win32 cover
return _check_git_filemode(paths)
else: # pragma: win32 no cover
retv = 0