tasks/build_control.js
function initRemote () {
      remoteName = "remote-" + crypto.createHash('md5').update(options.remote).digest('hex').substring(0, 6);

      if (shelljs.exec('git remote', {silent: true}).output.indexOf(remoteName) === -1) {
        log.subhead('Creating remote.');
        execWrap('git remote add ' + remoteName + ' ' + options.remote);
      }
    }
function initRemote () {
      remoteName = "remote-" + crypto.createHash('md5').update(options.remote).digest('hex').substring(0, 6);

      if (shelljs.exec('git remote', {silent: true}).output.indexOf(remoteName) === -1) {
        log.subhead('Creating remote.');
        execWrap('git remote add ' + remoteName + ' ' + options.remote);
      }
    }
function initRemote ( ) { remoteName = "remote-" + crypto . createHash ( 'md5' ) . update ( options . remote ) . digest ( 'hex' ) . substring ( 0 , 6 ) ; if ( shelljs . exec ( 'git remote' , { silent : true } ) . output . indexOf ( remoteName ) === - 1 ) { log . subhead ( 'Creating remote.' ) ; execWrap ( 'git remote add ' + remoteName + ' ' + options . remote ) ; } }
Create a named remote if one doesn't exist
Create a named remote if one doesn t exist