Skip to content

Commit

Permalink
Fix remote branch fetching and comparing
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksandr-m committed Jun 2, 2022
1 parent 4b40a6c commit 64aa964
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -990,9 +990,9 @@ protected void gitBranchDeleteForce(final String branchName)
* If command line execution fails.
*/
protected void gitFetchRemoteAndCompareCreate(final String branchName) throws MojoFailureException, CommandLineException {
final boolean fetchOk = gitFetchRemote();
final boolean remoteBranchExists = StringUtils.isNotBlank(gitFetchAndFindRemoteBranches(branchName, true));
if (gitCheckBranchExists(branchName)) {
if (fetchOk) {
if (remoteBranchExists) {
getLog().info(
"Comparing local branch '" + branchName + "' with remote '" + gitFlowConfig.getOrigin() + "/" + branchName + "'.");
String revlistout = executeGitCommandReturn("rev-list", "--left-right", "--count",
Expand Down

0 comments on commit 64aa964

Please sign in to comment.