simple-git
Advanced tools
Comparing version 1.28.0 to 1.28.1
{ | ||
"name": "simple-git", | ||
"description": "Simple GIT interface for node.js", | ||
"version": "1.28.0", | ||
"version": "1.28.1", | ||
"author": "Steve King <steve@mydev.co>", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
@@ -738,3 +738,3 @@ (function () { | ||
var splitter = opt.splitter || ';'; | ||
var command = ["log", "--pretty=format:'%H %ai %s%d %aN %ae'".replace(/\s+/g, splitter)]; | ||
var command = ["log", "--pretty=format:%H %ai %s%d %aN %ae".replace(/\s+/g, splitter)]; | ||
@@ -741,0 +741,0 @@ |
11
test.js
var FS = require('fs'); | ||
var simpleGit = require('./src/index'); | ||
var simpleGit = require('./'); | ||
console.log(typeof simpleGit); | ||
var bareDir = 'test.git'; | ||
var git = simpleGit(bareDir); | ||
var git = simpleGit(); | ||
FS.mkdirSync(bareDir); | ||
git.init(true, function(err) { | ||
console.log("init bare done"); | ||
git.log(function(err, log) { | ||
console.log(log); | ||
}); |
@@ -326,2 +326,3 @@ | ||
test.equals(null, err, 'not an error'); | ||
test.same(["log", "--pretty=format:%H::%ai::%s%d::%aN::%ae"], theCommandRun()); | ||
test.same('ca931e641eb2929cf86093893e9a467e90bf4c9b', result.latest.hash, 'knows which is latest'); | ||
@@ -344,3 +345,3 @@ test.same(4, result.total, 'picked out all items'); | ||
test.equals(null, err, 'not an error'); | ||
test.same(["log", "--pretty=format:'%H;%ai;%s%d;%aN;%ae'", "from...to"], theCommandRun()); | ||
test.same(["log", "--pretty=format:%H;%ai;%s%d;%aN;%ae", "from...to"], theCommandRun()); | ||
test.done(); | ||
@@ -360,3 +361,3 @@ }); | ||
test.equals(null, err, 'not an error'); | ||
test.same(["log", "--pretty=format:'%H;%ai;%s%d;%aN;%ae'", "--some=thing"], theCommandRun()); | ||
test.same(["log", "--pretty=format:%H;%ai;%s%d;%aN;%ae", "--some=thing"], theCommandRun()); | ||
test.done(); | ||
@@ -376,3 +377,3 @@ }); | ||
test.equals(null, err, 'not an error'); | ||
test.same(["log", "--pretty=format:'%H;%ai;%s%d;%aN;%ae'", "--max-count=5"], theCommandRun()); | ||
test.same(["log", "--pretty=format:%H;%ai;%s%d;%aN;%ae", "--max-count=5"], theCommandRun()); | ||
test.done(); | ||
@@ -392,3 +393,3 @@ }); | ||
test.equals(null, err, 'not an error'); | ||
test.same(["log", "--pretty=format:'%H;%ai;%s%d;%aN;%ae'", "--max-count=5"], theCommandRun()); | ||
test.same(["log", "--pretty=format:%H;%ai;%s%d;%aN;%ae", "--max-count=5"], theCommandRun()); | ||
test.done(); | ||
@@ -395,0 +396,0 @@ }); |
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
73695
1739