Skip to content

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

Closed

Description

@kehundley-fadv

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

Activity

  1. added a commit that references this issue on Jan 17, 2016
    5f173b9
  2. JakeGinnivan commented on Jan 17, 2016

    @JakeGinnivan
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions