liip/RMT

Check origin prior to release

gnat42 opened this issue · 3 comments

So I just went to release a version of a bundle/project that we don't often have to change anything. In any case we didn't git pull prior to making a release. Then the release failed. It would be useful to do a git fetch to ensure whatever branch we're on is updated prior to committing / modifying the changelog or other post release functions.

I can see where you are coming from, but a fetch can be rather large and not intended.
How do you imagine the process to look like?

Well I haven't looked at it deeply but I imagine it would be an optional/configurable pre-release check.

It could basically do a git fetch origin and then ensure that whatever branch we're on isn't behind the origin of that branch.

I got same issue several times, so yes, it could be a nice addition. Pull request welcome if you implement such pre-requisite...