npub
Version:
publishing tool for your node projects hosted on github
17 lines (14 loc) • 359 B
JavaScript
// Generated by CoffeeScript 1.9.1
var debug;
debug = require('debug')('commit-changes');
module.exports = function(git, tag, callback) {
debug(tag);
return git.commit(tag, function(success) {
debug("status: " + success);
if (!success) {
callback(new Error("failed to commit changes"));
return;
}
return callback();
});
};