Skip to content

Commit

Permalink
Merge pull request #57 from serialworm/master
Browse files Browse the repository at this point in the history
Adjusted maxBuffer sent to exec for large repos
  • Loading branch information
notatestuser committed Apr 14, 2015
2 parents fd41d6e + dd2ff80 commit 3e0c426
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 3e0c426

Please sign in to comment.