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:
parent
15e6daf7cc
commit
a5cb9ea7f7
@ -49,6 +49,9 @@ module.exports = function (config, cb) {
|
|||||||
function extract () {
|
function extract () {
|
||||||
exec(
|
exec(
|
||||||
'git log -E --format=%H==SPLIT==%B==END== ' + range,
|
'git log -E --format=%H==SPLIT==%B==END== ' + range,
|
||||||
|
{
|
||||||
|
maxBuffer: 1024 * 1024 // 1MB instead of 220KB (issue #286)
|
||||||
|
},
|
||||||
function (err, stdout) {
|
function (err, stdout) {
|
||||||
if (err) return cb(err)
|
if (err) return cb(err)
|
||||||
|
|
||||||
|
@ -4,7 +4,10 @@ const rawCommits = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
module.exports = {
|
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 (/contains/.test(command)) {
|
||||||
if (/notinhistory/.test(command)) return cb(new Error())
|
if (/notinhistory/.test(command)) return cb(new Error())
|
||||||
return cb(null, 'whatever\nmaster\n')
|
return cb(null, 'whatever\nmaster\n')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user