simple-git
Advanced tools
Comparing version 1.22.0 to 1.23.0
{ | ||
"name": "simple-git", | ||
"description": "Simple GIT interface for node.js", | ||
"version": "1.22.0", | ||
"version": "1.23.0", | ||
"author": "Steve King <steve@mydev.co>", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
@@ -541,2 +541,13 @@ (function () { | ||
/** | ||
* Updates repository server info | ||
* | ||
* @param {Function} [then] | ||
*/ | ||
Git.prototype.updateServerInfo = function (then) { | ||
return this._run(["update-server-info"], function (err, data) { | ||
then && then(err, !err && data); | ||
}); | ||
}; | ||
/** | ||
* Pushes the current committed changes to a remote, optionally specify the names of the remote and branch to use | ||
@@ -543,0 +554,0 @@ * when pushing. |
@@ -634,1 +634,19 @@ | ||
}; | ||
exports.updateServerInfo = { | ||
setUp: function(done) { | ||
Instance(); | ||
done(); | ||
}, | ||
'update server info': function (test) { | ||
git.updateServerInfo(function (err, result) { | ||
test.equals(null, err, 'not an error'); | ||
test.same(["update-server-info"], theCommandRun()); | ||
test.done(); | ||
}); | ||
closeWith(''); | ||
} | ||
}; |
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
62269
1452