Skip to content

Commit 745bcc3

Browse files
authored
fix(windows): decrease max cmd length for windows (#666)
1 parent 756a778 commit 745bcc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/lefthook/run/prepare_command.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const (
3030
// https://support.microsoft.com/en-us/help/830473/command-prompt-cmd-exe-command-line-string-limitation
3131
// https://unix.stackexchange.com/a/120652
3232
maxCommandLengthDarwin = 260000 // 262144
33-
maxCommandLengthWindows = 8000 // 8191
33+
maxCommandLengthWindows = 7000 // 8191, but see issues#655
3434
maxCommandLengthLinux = 130000 // 131072
3535
)
3636

0 commit comments

Comments
 (0)