Add osx specific limit for command-line length

Limit on OSX is 262144
This commit is contained in:
Andrew S. Brown 2019-02-06 11:58:03 -08:00
parent 6bc7b91dd1
commit 7f9b29dfd4
2 changed files with 16 additions and 0 deletions

View file

@ -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