aleksandr-m / gitflow-maven-plugin

The Git-Flow Maven Plugin supports various Git workflows, including GitFlow and GitHub Flow. This plugin runs Git and Maven commands from the command line.
https://aleksandr-m.github.io/gitflow-maven-plugin/
Apache License 2.0
488 stars 180 forks source link

BugFix for #342 does remote release branch exist #344

Closed nhojpatrick closed 2 years ago

nhojpatrick commented 2 years ago

Perform git fetch before checking if existing branch exists.

If it works, it should resolve #342.

aleksandr-m commented 2 years ago

This won't check for remote branch.

nhojpatrick commented 1 year ago

I've tested this manually and I believe it will check for a remote branch.

Something like this;

git checkout -b release/1.1.1
git push origin
git branch -D release/1.1.1
mvn com.amashchenko.maven.plugin:gitflow-maven-plugin:1.19.0:gitflow:release-start

It sees the existing release branch.