-
Notifications
You must be signed in to change notification settings - Fork 640
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
Commit Counts and Tags #547
Comments
Could you give me a bit more context? What was the version on develop before the tag? |
So with the tag 2.0.0-alpha on develop the version was for FullSemVer: 2.0.0-unstable.33 33 denoting 33 commits from that tag. If I delete the tag 2.0.0-alpha on develop than the version is 2.0.0-unstable.142 142 denoting 142 commits since last mergeCommitDate with master I assume. In version 3.0.0 of GitVersion tool I got 142 with the tag in 3.0.1 I get the 33. |
Can you run the exe and paste the logs? There were a number of commit counting bugs in 3.0.0 which were fixed. |
Log with a Tag on develop : http://pastebin.com/NVLWJ96h In the above example its actually 4.0.0 and the Tag is 4.0.0-rc.1. Both where taken with GitVersion 3.0.1. Also the first log has the tag then I deleted it and ran again and produced the second log. |
So there was a bug in 3.0.0 which happened to make this scenario work.. The issue (as it stands) is that you have used This is stepping through the current logic:
Based on this flow your commit counting will always be from the latest tag. Ideas on how to fix are welcome. The failing test I created is:
|
@igloo15 did you see my response? |
Thanks yeah in the end I just removed the offending tags and worked around it. Thanks |
How do tags affect Commit Count on Develop branch? I have found that tags now reset the commit count as of version 3.0.1 where in version 3.0.0 they only affected the version number when on master branch. Now any version tag resets the develop branch's commit count.
For instance I have a 2.0.0-alpha tag on develop and it resets my commit counter. Before it would ignore that and go back to when develop last merged with master. The documentation doesn't seem to match up with what is actually happening.
The text was updated successfully, but these errors were encountered: