tasks/build_control.js
function gitFetch (dest) {
      var branch = (options.remoteBranch || options.branch) + (dest ? ':' + options.branch : '');
      log.subhead('Fetching "' + options.branch + '" ' + (options.shallowFetch ? 'files' : 'history') + ' from ' + options.remote + '.');

      // `--update-head-ok` allows fetch on a branch with uncommited changes
      execWrap('git fetch --update-head-ok ' + progress + depth + remoteName + ' ' + branch, false, true);
    }
function gitFetch (dest) {
      var branch = (options.remoteBranch || options.branch) + (dest ? ':' + options.branch : '');
      log.subhead('Fetching "' + options.branch + '" ' + (options.shallowFetch ? 'files' : 'history') + ' from ' + options.remote + '.');

      // `--update-head-ok` allows fetch on a branch with uncommited changes
      execWrap('git fetch --update-head-ok ' + progress + depth + remoteName + ' ' + branch, false, true);
    }
function gitFetch ( dest ) { var branch = ( options . remoteBranch || options . branch ) + ( dest ? ':' + options . branch : '' ) ; log . subhead ( 'Fetching "' + options . branch + '" ' + ( options . shallowFetch ? 'files' : 'history' ) + ' from ' + options . remote + '.' ) ; // `--update-head-ok` allows fetch on a branch with uncommited changes execWrap ( 'git fetch --update-head-ok ' + progress + depth + remoteName + ' ' + branch , false , true ) ; }
Fetch remote refs to a specific branch, equivalent to a pull without checkout
Fetch remote refs to a specific branch equivalent to a pull without checkout