private boolean gitFetchRemote(final String branchName)
            throws MojoFailureException, CommandLineException {
        getLog().info(
                "Fetching remote branch '" + gitFlowConfig.getOrigin() + " "
                        + branchName + "'.");

        CommandResult result = executeGitCommandExitCode("fetch", "--quiet",
                gitFlowConfig.getOrigin(), branchName);

        boolean success = result.getExitCode() == SUCCESS_EXIT_CODE;
        if (!success) {
            getLog().warn(
                    "There were some problems fetching remote branch '"
                            + gitFlowConfig.getOrigin()
                            + " "
                            + branchName
                            + "'. You can turn off remote branch fetching by setting the 'fetchRemote' parameter to false.");
        }

        return success;
    }
private boolean gitFetchRemote ( final String branchName ) throws MojoFailureException , CommandLineException { getLog ( ) . info ( "Fetching remote branch '" + gitFlowConfig . getOrigin ( ) + " " + branchName + "'." ) ; CommandResult result = executeGitCommandExitCode ( "fetch" , "--quiet" , gitFlowConfig . getOrigin ( ) , branchName ) ; boolean success = result . getExitCode ( ) == SUCCESS_EXIT_CODE ; if ( ! success ) { getLog ( ) . warn ( "There were some problems fetching remote branch '" + gitFlowConfig . getOrigin ( ) + " " + branchName + "'. You can turn off remote branch fetching by setting the 'fetchRemote' parameter to false." ) ; } return success ; }
Executes git fetch.

@param branchName
Branch name to fetch.
@return <code>true</code> if git fetch returned success exit code,
<code>false</code> otherwise.
@throws MojoFailureException
@throws CommandLineException