UNPKG

sharegit

Version:
20 lines (15 loc) 392 B
/** * @function _remoteExists * @private */ "use strict"; 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;