We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e431b2b + fb590d4 commit 008717fCopy full SHA for 008717f
pre_commit/xargs.py
@@ -145,7 +145,9 @@ def xargs(
145
# this is implementation details but the command gets translated into
146
# full/path/to/cmd.exe /c *cmd
147
cmd_exe = parse_shebang.find_executable('cmd.exe')
148
- _max_length = 8192 - len(cmd_exe) - len(' /c ')
+ # 1024 is additionally subtracted to give headroom for further
149
+ # expansion inside the batch file
150
+ _max_length = 8192 - len(cmd_exe) - len(' /c ') - 1024
151
152
partitions = partition(cmd, varargs, target_concurrency, _max_length)
153
0 commit comments