-
Notifications
You must be signed in to change notification settings - Fork 663
Description
Hi,
I am using recent version of gitversion (v4.0.0-beta0007) installed from chocolatey.
In default configuration I observed duplicated FullSemVer for different commits. It seems that first commit in release branch has wrong metadata +1, but should have +0.
Screen shot of my test repository:
Branches started with 'ver' are auto-generated from FullSemVer variable.
Commit 7842238c9e4777d31cb3c4274949793969e4b9ef on 'release/1.0.0' branch has version '1.0.0-beta.1+1'.
Gitversion generates the same version for commit ad54234fc1329bfd64191b83d08e1fcb491ab7c7. That is why my script cannot add a branch with version - it will be duplicated branch name in git.
But the third commit c5c52f748426f9316e393a585b66818ad2be9d96 has correct version '1.0.0-beta.1+2'
It looks like this is a bug and version for 7842238c9e4777d31cb3c4274949793969e4b9ef should be '1.0.0-beta.1+0'.
I have attached test repo and script to reproduce this issue in zip archive:
test-repo.zip
Many thanks,
Yevgen.
