Skip to content

Resetting commit count to 0 on new branches with ContinuousDeployment #681

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
KenHundley opened this issue Oct 10, 2015 · 1 comment
Closed

Comments

@KenHundley
Copy link

Hi,
I've been trying to figure out if it's possible to force gitversion to reset the commit count with each new feature / release / hotfix branch when using ContinuousDeployment.

Here is what I'm seeing:
develop version is say "1.1.0-unstable.4" (4 commits past 1.0.0 tag) which is what I expect, but if I branch a new feature (feature/f1) from develop I get "1.1.0-f1.4". I would rather have "1.1.0-f1.0" since there have been no commits on that branch. Although I know from looking at the git graph this may not be possible.

It's even more pronounced when we branch for a release. Usually when I branch it'll be something like
"1.1.0-beta0107" which is confusing to some people since they would expect it to start at 0.

I've looked through the docs and prior posts, but I haven't found anything addressing this. So any advice would be appreciated.

I'm using version 3.1.2

@JakeGinnivan
Copy link
Contributor

This sounds like the same issue as #700

If you can pull down master and verify this is fixed for you, if it isn't a test would be super helpful :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants