simple-git
Advanced tools
Comparing version 1.4.0 to 1.5.0
{ | ||
"name": "simple-git", | ||
"description": "Simple GIT interface for node.js", | ||
"version": "1.4.0", | ||
"version": "1.5.0", | ||
"author": "Steve King <steve@mydev.co>", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
@@ -456,5 +456,5 @@ (function () { | ||
Git.prototype.then = function (then) { | ||
this._runCache.push(["echo ''", then]); | ||
this._schedule(); | ||
this._run([], function () { | ||
typeof then === 'function' && then(); | ||
}); | ||
return this; | ||
@@ -461,0 +461,0 @@ }; |
11
test.js
@@ -15,4 +15,13 @@ | ||
.pushTags(function (err) { | ||
console.log('status', err); | ||
console.log('pushTags', err); | ||
}) | ||
.then(function () { | ||
console.log('then-a'); | ||
}) | ||
.status(function (a, b) { | ||
console.log('status', a, b); | ||
}) | ||
.then(function () { | ||
console.log('then-b'); | ||
}); | ||
30649
679