/** * Requires that git flow has been initialized for the project represented by the internal {Git} instance * * @throws com.atlassian.jgitflow.core.exception.NotInitializedException * @throws com.atlassian.jgitflow.core.exception.JGitFlowGitAPIException */ public void requireGitFlowInitialized() throws NotInitializedException, JGitFlowGitAPIException { if (!gfConfig.gitFlowIsInitialized()) { reporter.errorText(commandName, "requireGitFlowInitialized() failed"); reporter.flush(); throw new NotInitializedException("Git flow is not initialized in " + git.getRepository().getWorkTree().getPath()); } }
/** * Requires that git flow has been initialized for the project represented by the internal {Git} instance * * @throws com.atlassian.jgitflow.core.exception.NotInitializedException * @throws com.atlassian.jgitflow.core.exception.JGitFlowGitAPIException */ public void requireGitFlowInitialized() throws NotInitializedException, JGitFlowGitAPIException { if (!gfConfig.gitFlowIsInitialized()) { reporter.errorText(commandName, "requireGitFlowInitialized() failed"); reporter.flush(); throw new NotInitializedException("Git flow is not initialized in " + git.getRepository().getWorkTree().getPath()); } }
/** * Requires that git flow has been initialized for the project represented by the internal {Git} instance * @throws NotInitializedException * @throws JGitFlowGitAPIException */ protected void requireGitFlowInitialized() throws NotInitializedException, JGitFlowGitAPIException { if (!gfConfig.gitFlowIsInitialized()) { reporter.errorText(getCommandName(), "requireGitFlowInitialized() failed"); reporter.flush(); throw new NotInitializedException("Git flow is not initialized in " + git.getRepository().getWorkTree().getPath()); } }