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 .