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.
1 parent 77c82e0 commit 84cfdc1Copy full SHA for 84cfdc1
scripts/githooks/check-file-format.sh
@@ -66,7 +66,12 @@ function main-invocation() {
66
method=--via-docker
67
fi
68
69
- dry_run_opt="${dry_run_opt:-}" scripts/githooks/check-file-format.sh "$method" $(list-files-to-check--"$check")
+ list-files-to-check--"$check" |
70
+ # Maximum size of command line and environment combined is typically
71
+ # 2MB on Linux but only 256KB on macOS. Assume a maximum filename
72
+ # length of 200 characters and limiting us to batches of 1000 files
73
+ # gives us a bit of a safety margin.
74
+ dry_run_opt="${dry_run_opt:-}" xargs --max-args=1000 scripts/githooks/check-file-format.sh "$method"
75
}
76
77
# Run editorconfig natively.
0 commit comments