Skip to content

Use spawn for ls-remote to avoid large output#360

Open
gliheng wants to merge 1 commit intoRich-Harris:masterfrom
gliheng:master
Open

Use spawn for ls-remote to avoid large output#360
gliheng wants to merge 1 commit intoRich-Harris:masterfrom
gliheng:master

Conversation

@gliheng
Copy link

@gliheng gliheng commented Jul 5, 2023

exec's output is buffered and has limit of 1m by default. It's better to use spawn instead for big repo with lots of refs. One exmple repo is this one: https://github.com/vercel/next.js and is causing exec to fail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant