git-flow does not delete remote branch when published release is finished
git flow does not delete remote branch when a release which is published and then finished. It deletes release branch on local but not on remote
╰─± git flow release finish v3.1.12
Switched to branch 'master'
Merge made by the 'recursive' strategy.
ee/cli/plugins/example.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Deleted branch release/v3.1.12 (was 254971c).
Summary of actions:
- Latest objects have been fetched from 'origin'
- Release branch has been merged into 'master'
- The release was tagged 'v3.1.12'
- Release branch has been back-merged into 'develop'
- Release branch 'release/v3.1.12' has been deleted
I also have the same problem.
Are you using the push flag (https://github.com/nvie/gitflow/blob/master/git-flow-release#L193) ? It seems that if the push flag is flipped to true, then part of the logic is to attempt to delete the remote branch (after pushing).
Reference: https://github.com/nvie/gitflow/blob/master/git-flow-release#L269-L280
according to this thread, you can kill the remote feature branch as well with: git flow feature finish -F.
I had the same problem with git flow release finish 1.0.0
After pushing my tags with git push --tags
I run git push origin :release/1.0.0 and then my release remote branch was deleted on gitlab repo
Sorry for the notification after 7 years :)
You can also run git flow release finish -p [VERSION]
This command will fetch, push and delete branch in question.
Closing all issues as I'm archiving this repo. git-flow lives on at git-flow-next if you're still using it. Thanks for reporting!