fix(gitlog): increase maxBuffer

This is needed for repositories with a lot of commits and/or a big changelog.

Closes #286
This commit is contained in:
Joscha Feth
2016-09-01 14:35:34 +02:00
committed by Stephan Bönnemann
parent 15e6daf7cc
commit a5cb9ea7f7
2 changed files with 7 additions and 1 deletions
+4 -1
View File
@@ -4,7 +4,10 @@ const rawCommits = [
]
module.exports = {
exec: function (command, cb) {
exec: function (command, options, cb) {
if (typeof cb === 'undefined' && typeof options === 'function') {
cb = options
}
if (/contains/.test(command)) {
if (/notinhistory/.test(command)) return cb(new Error())
return cb(null, 'whatever\nmaster\n')