Skip to content

Commit count resets to 0 when merge detected on branches (only the first merge) #814

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
taborda opened this issue Mar 31, 2016 · 6 comments

Comments

@taborda
Copy link

taborda commented Mar 31, 2016

I'm still experiencing the problem explained in issue #700

Commit count is reset to 0 when a merge is detected on a branch with ContinuousDeployment.
Apparently this problem only happens in the first merge.

If it helps, here is the log:
gitversion_branch_merge_resets_commit_count.txt

In this example there was a merge in the release/1.4 branch with the message:
Merge branch 'release/1.4' of https://git-srv.local/taborda/test into release/1.4
The commit count was reset after this.
After that, it is not resetting the commit count on each merge. But still, it is counting from the last merge, that is when it was reset.

The branch release/1.4 is a branch from 9217f49575afd28dddd792137ad101f89166dd14
GitVersion selected a66691e3e173ae07a1cb086e37132cb1b9d2a0d5 as the source

@taborda
Copy link
Author

taborda commented Mar 31, 2016

I've created a pull request with the test provided by @msnelling on issue #700

Just changed the expected FullSemver to be 2.0.0-beta.3 instead of 2.0.0-beta.2

@fokkoru
Copy link

fokkoru commented May 12, 2016

I have the same issue, I have release and develop breaches. When I merge release to develop it dropped count of commits, second merge did not change it.

JakeGinnivan added a commit to JakeGinnivan/GitVersion that referenced this issue Jul 10, 2016
…e branch commit counts are reset incorrectly)
@JakeGinnivan
Copy link
Contributor

#832 fixes this. I will post in that PR if that will be released with the next release or it will be in 4.0.0-beta

JakeGinnivan added a commit to JakeGinnivan/GitVersion that referenced this issue Jul 10, 2016
…e branch commit counts are reset incorrectly)
JakeGinnivan added a commit to JakeGinnivan/GitVersion that referenced this issue Jul 16, 2016
…e branch commit counts are reset incorrectly)
JakeGinnivan added a commit to JakeGinnivan/GitVersion that referenced this issue Jul 17, 2016
…e branch commit counts are reset incorrectly)
@aryak007
Copy link

#832 fixes this. I will post in that PR if that will be released with the next release or it will be in 4.0.0-beta

@JakeGinnivan Unfortunately, we're still facing this in #1992 and we're using 4.0.1. Is there any other fix available for this in the subsequent releases?

@asbjornu
Copy link
Member

@aryak93, can you please try with the latest release of version 5 of GitVersion?

@aryak007
Copy link

Thanks @asbjornu. I'll definitely give it a try. Can you please also take a look at #1992 ? It'd be of great help.

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

5 participants