simple-git
Advanced tools
Comparing version 0.1.0 to 0.1.2
{ | ||
"name": "simple-git", | ||
"description": "Simple GIT interface for node.js", | ||
"version": "0.1.0", | ||
"version": "0.1.2", | ||
"author": "Steve King <steve@mydev.co>", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
@@ -57,3 +57,3 @@ (function() { | ||
return this._run('git commit -m "' + message.replace(/"/g, '\\"') + '"' + files, function(err, data) { | ||
then && then(err, git._parseCommit(data)); | ||
then && then(err, !err && git._parseCommit(data)); | ||
}); | ||
@@ -209,5 +209,5 @@ }; | ||
module.exports = function(baseDir) { | ||
return new Git(baseDir || __dirname); | ||
return new Git(baseDir || process.cwd()); | ||
}; | ||
}()); |
9318