Rich-Harris / degit

Straightforward project scaffolding
MIT License
6.93k stars 242 forks source link

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

Open gliheng opened 1 year ago

gliheng commented 1 year ago

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.