Skip to content

Commit

Permalink
Adjusted maxBuffer sent to exec for large repos
Browse files Browse the repository at this point in the history
  • Loading branch information
serialworm committed Feb 25, 2015
1 parent fdc8399 commit dd2ff80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/git.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = Git = (git_dir, dot_git, git_options) ->
args ?= []
args = args.join " " if args instanceof Array
bash = "#{git_options.bin || Git.bin} #{command} #{options} #{args}"
exec bash, {cwd: git_dir, encoding:'binary'}, callback
exec bash, {cwd: git_dir, encoding:'binary', maxBuffer: 5000 * 1024}, callback
return bash

# Public: Passthrough for raw git commands
Expand Down

0 comments on commit dd2ff80

Please sign in to comment.