mirror of
https://github.com/danog/gift.git
synced 2024-11-26 20:04:47 +01:00
Merge pull request #57 from serialworm/master
Adjusted maxBuffer sent to exec for large repos
This commit is contained in:
commit
3e0c426b02
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user