sociomantic-tsunami / neptune

Sociomantic library versioning definitions, guides, and tools
Boost Software License 1.0
1 stars 15 forks source link

neptune-release does not check that local branch is up to date #242

Open joseph-wakeling-sociomantic opened 5 years ago

joseph-wakeling-sociomantic commented 5 years ago

When neptune-release is invoked it will create tags and new branches, apply new patches (to clear release notes) and attempt to push references without ever validating that the local branch is up to date with its remote counterpart. This means that both a release tag and a minor release branch can be pushed before git fails due to the inability to push to one of the remote branches.

To avoid the need for a great deal of manual cleanup it seems like a good idea for neptune-release to first fetch from the remote and validate that the current branch is up to date.