You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
create_pull_request fails with large commits #18501
Root cause:execGitSync() in actions/setup/js/git_helpers.cjs calls spawnSync() without setting maxBuffer, so Node.js defaults to ~1MB. When git format-patch --stdout produces a patch larger than that (e.g. large binary files), the buffer is exceeded and the command fails.
Every other handler in the codebase (mcp_handler_shell.cjs, mcp_handler_python.cjs, mcp_handler_javascript.cjs, mcp_handler_go.cjs) sets maxBuffer: 10 * 1024 * 1024 (10MB).
Fix: Add maxBuffer to the spawnSync call in git_helpers.cjs:30:
Activity
[-]create_pull_request fails with very commits[/-][+]create_pull_request fails with very large commits[/+][-]create_pull_request fails with very large commits[/-][+]create_pull_request fails with large commits[/+]strawgate commentedon Feb 26, 2026
Root cause:
execGitSync()inactions/setup/js/git_helpers.cjscallsspawnSync()without settingmaxBuffer, so Node.js defaults to ~1MB. Whengit format-patch --stdoutproduces a patch larger than that (e.g. large binary files), the buffer is exceeded and the command fails.Every other handler in the codebase (
mcp_handler_shell.cjs,mcp_handler_python.cjs,mcp_handler_javascript.cjs,mcp_handler_go.cjs) setsmaxBuffer: 10 * 1024 * 1024(10MB).Fix: Add
maxBufferto thespawnSynccall ingit_helpers.cjs:30:pelikhan commentedon Feb 26, 2026
@copilot refactor sizes in comon .cjs file, include creating helpers to compute those.