mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-18 00:24:47 +04:00
Fixes xargs partition length on Windows for EXE hooks
This commit is contained in:
parent
73848383f2
commit
9da305e185
2 changed files with 2 additions and 2 deletions
|
|
@ -155,7 +155,7 @@ def xargs(
|
|||
# on windows, batch files have a separate length limit than windows itself
|
||||
if (
|
||||
sys.platform == 'win32' and
|
||||
cmd[0].lower().endswith(('.bat', '.cmd'))
|
||||
cmd[0].lower().endswith(('.bat', '.cmd', '.exe'))
|
||||
): # pragma: win32 cover
|
||||
# this is implementation details but the command gets translated into
|
||||
# full/path/to/cmd.exe /c *cmd
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue