tasks/build_control.js
function gitTrack () {
      var remoteBranch = options.remoteBranch || options.branch;
      if (shelljs.exec('git config branch.' + options.branch + '.remote', {silent: true}).output.replace(/\n/g, '') !== remoteName) {
        execWrap('git branch --set-upstream-to=' + remoteName + '/' + remoteBranch + ' ' + options.branch);
      }
    }
function gitTrack () {
      var remoteBranch = options.remoteBranch || options.branch;
      if (shelljs.exec('git config branch.' + options.branch + '.remote', {silent: true}).output.replace(/\n/g, '') !== remoteName) {
        execWrap('git branch --set-upstream-to=' + remoteName + '/' + remoteBranch + ' ' + options.branch);
      }
    }
function gitTrack ( ) { var remoteBranch = options . remoteBranch || options . branch ; if ( shelljs . exec ( 'git config branch.' + options . branch + '.remote' , { silent : true } ) . output . replace ( / \n / g , '' ) !== remoteName ) { execWrap ( 'git branch --set-upstream-to=' + remoteName + '/' + remoteBranch + ' ' + options . branch ) ; } }
Set branch to track remote
Set branch to track remote