sharegit
Version:
Share project to remote git repo.
20 lines (15 loc) • 392 B
JavaScript
/**
* @function _remoteExists
* @private
*/
;
const util = require('util'),
childProcess = require('child_process');
/** @lends _remoteExists */
function _remoteExists(callback) {
let command = 'git remote';
childProcess.exec(command, function (err, stdOut, stdErr) {
callback(err || stdErr || null, !!stdOut);
});
}
module.exports = _remoteExists;