1
0
mirror of https://github.com/danog/gift.git synced 2024-11-30 04:19:37 +01:00

Merge pull request #57 from serialworm/master

Adjusted maxBuffer sent to exec for large repos
This commit is contained in:
Luke Plaster 2015-04-14 22:58:31 +02:00
commit 3e0c426b02

View File

@ -14,7 +14,7 @@ module.exports = Git = (git_dir, dot_git, git_options) ->
args ?= [] args ?= []
args = args.join " " if args instanceof Array args = args.join " " if args instanceof Array
bash = "#{git_options.bin || Git.bin} #{command} #{options} #{args}" 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 return bash
# Public: Passthrough for raw git commands # Public: Passthrough for raw git commands