/** * Requires that a local branch with the given name exists * @param branch The name of the branch to test * @throws LocalBranchMissingException * @throws JGitFlowGitAPIException */ protected void requireLocalBranchExists(String branch) throws LocalBranchMissingException, JGitFlowGitAPIException { if (!GitHelper.localBranchExists(git, branch)) { reporter.errorText(getCommandName(), "localBranchExists() failed: '" + branch + "' does not exist"); reporter.flush(); throw new LocalBranchMissingException("local branch " + branch + " does not exist"); } }
throw new LocalBranchMissingException("commit " + commitId + " does not exist");
throw new LocalBranchMissingException("commit " + commitId + " does not exist");
throw new LocalBranchMissingException("commit " + commitId + " does not exist");
throw new LocalBranchMissingException("local branch " + branch + " does not exist");
throw new LocalBranchMissingException("local branch " + branch + " does not exist");