tasks/build_control.js
function gitTag () {
      // If the tag exists, skip tagging
      if (shelljs.exec('git ls-remote --tags --exit-code ' + remoteName + ' ' + options.tag, {silent: true}).code === 0) {
        log.subhead('The tag "' + options.tag + '" already exists on remote. Skipping tagging.');
        return;
      }

      log.subhead('Tagging the local repository with ' + options.tag);
      execWrap('git tag ' + options.tag);
    }
function gitTag () {
      // If the tag exists, skip tagging
      if (shelljs.exec('git ls-remote --tags --exit-code ' + remoteName + ' ' + options.tag, {silent: true}).code === 0) {
        log.subhead('The tag "' + options.tag + '" already exists on remote. Skipping tagging.');
        return;
      }

      log.subhead('Tagging the local repository with ' + options.tag);
      execWrap('git tag ' + options.tag);
    }
function gitTag ( ) { // If the tag exists, skip tagging if ( shelljs . exec ( 'git ls-remote --tags --exit-code ' + remoteName + ' ' + options . tag , { silent : true } ) . code === 0 ) { log . subhead ( 'The tag "' + options . tag + '" already exists on remote. Skipping tagging.' ) ; return ; } log . subhead ( 'Tagging the local repository with ' + options . tag ) ; execWrap ( 'git tag ' + options . tag ) ; }
Tag local branch
Tag local branch