Comparing version 3.1.1 to 3.1.2
@@ -56,3 +56,4 @@ module.exports = gitlog | ||
// Set defaults | ||
options = extend(defaultOptions, options) | ||
options = extend({}, defaultOptions, options) | ||
extend(options.execOptions, defaultOptions.execOptions) | ||
@@ -59,0 +60,0 @@ // Start constructing command |
{ | ||
"name": "gitlog", | ||
"version": "3.1.1", | ||
"version": "3.1.2", | ||
"description": "Git log parser for Node.JS", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -87,2 +87,22 @@ var gitlog = require('../') | ||
it('returns 10 commits from other dir, execOptions specified', function(done) { | ||
var cwd = process.cwd() | ||
process.chdir('/tmp') | ||
gitlog({ repo: testRepoLocation, execOptions: { encoding: 'utf8' } }, function(err, commits) { | ||
commits.length.should.equal(10) | ||
done() | ||
}) | ||
process.chdir(cwd) | ||
}) | ||
it('returns 10 commits from other dir', function(done) { | ||
var cwd = process.cwd() | ||
process.chdir('/tmp') | ||
gitlog({ repo: testRepoLocation }, function(err, commits) { | ||
commits.length.should.equal(10) | ||
done() | ||
}) | ||
process.chdir(cwd) | ||
}) | ||
it('returns the fields requested', function(done) { | ||
@@ -89,0 +109,0 @@ var fields = |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24914
419
13