Skip to content

GitVersion produces version with wrong commit count (release branch with feature branches on it) #1275

Closed
@novabe

Description

@novabe

Versions 3.5.3, 3.6.5, 4.0.0-beta0009, 4.0.0-beta0012

EDIT: see #1277 for some unit tests showing this.

Here is a repo that demonstrates the problem: https://github.com/novabe/GitVersionTesting.FeatureOnRelease/tree/release/WD/4.5.0

I expect branch release/WD.4.5.0 to produce a FullSemVer of 4.5.0-beta.9 but instead it produces 4.5.0-beta.5

Steps to reproduce:

  • Checkout branch release/WD/4.5.0
  • Run gitversion.bat located in subdirectory /gitversion
  • Check the properties*.json files (and also the log files) located in subdirectory /gitversion/output

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions