code: @Override
      protected File cloneRepository(File dest) {
          BaseRepository repo = Repository.clone(RepositoryConfiguration.DEFAULT, dest, getUrl());
  
          // set branch name
          String branchName = MASTER;;
          String branch = getBranch();
          if (StringUtils.isNotBlank(branch)) {
              branchName = branch;
          }
          String tag = getTag();
          if (StringUtils.isNotBlank(tag)) {
              branchName = tag;
          }
          BranchCommand.on(repo).set(branchName);
          return dest;
      }
docs: /* --- Overridden methods ---