diff --git a/index.js b/index.js index fc3d578..6b8bfb4 100755 --- a/index.js +++ b/index.js @@ -20,7 +20,7 @@ module.exports = { _command('git describe --always --tag --abbrev=0', cb) } , log : function (cb) { - _command('git log --no-color --pretty=format:\'[ "%H", "%s", "%cr", "%an" ],\' --abbrev-commit', function (str) { + _command('git --no-pager log --no-color --pretty=format:\'[ "%H", "%s", "%cr", "%an" ],\' --abbrev-commit', function (str) { str = str.substr(0, str.length-1) cb(JSON.parse('[' + str + ']')) })