mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-16 02:21:46 +04:00
Add osx specific limit for command-line length
Limit on OSX is 262144
This commit is contained in:
parent
6bc7b91dd1
commit
7f9b29dfd4
2 changed files with 16 additions and 0 deletions
|
|
@ -15,6 +15,8 @@ from pre_commit.util import cmd_output
|
|||
|
||||
# TODO: properly compute max_length value
|
||||
def _get_platform_max_length():
|
||||
if sys.platform == "darwin":
|
||||
return 262144
|
||||
# posix minimum
|
||||
return 4 * 1024
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue