Skip to content

child_process.exec limits stdout to 200k, throws exception when git command produces more than 200k of output #6

Description

@barwin

I'm trying to run some git commands using git-wrapper that generate more than 200k of output. They are hitting the maxBuffer limit of 200k from child_process.exec and throwing an exception (see http://nodejs.org/api/child_process.html#child_process_child_process_exec_command_options_callback)

I think a good workaround would be to use child_process.spawn instead. I'll send a pull-request over to demonstrate what I mean.

This StackOverflow thread shows an example of the error I'm talking about with child_process.exec:
https://stackoverflow.com/questions/23429499/stdout-buffer-issue-using-node-child-process

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions