Skip to content

Commit count resets to 0 on merging from feature branches to develop #1992

Closed

Description

@aryak007

Our gitflow is an obvious one and we're using ContinuousDeployment

  • A branch named feature/something is branched off from develop.
  • Some work is done on feature/something.
  • Meanwhile, other branches are also created from develop and are worked upon.
  • The branches are merged to develop by submitting a PR from the feature branches.
  • The number of commits on the develop keeps on incrementing until one merge resets the commit count.

We're using the docker image gittools/gitversion-dotnetcore:linux-4.0.1 (so, our version is 4.0.1) and our issue is very closely related to these:

#700
#814
#681

What I've figured out so far is that the counting starts as Gitversion detects the merge base and detects the count from that point. Since, we're not rebasing, can that be a possible reason for this behaviour?

Also, will taking a new version of GitVersion improve our chances of mitigating this error?

The point where the reset happened is highlighted in blue.

Activity

  1. changed the title [-]Commit count resets to 0 on merging from feature branches to develop[/-] [+]Bug: Commit count resets to 0 on merging from feature branches to develop[/+] on Dec 15, 2019
  2. changed the title [-]Bug: Commit count resets to 0 on merging from feature branches to develop[/-] [+]Commit count resets to 0 on merging from feature branches to develop[/+] on Dec 15, 2019
  3. asbjornu commented on Dec 17, 2019

    @asbjornu
    Member

    As asked in #814 (comment) it would be great if you could try out a more recent version of GitVersion to see if it behaves the same way.

  4. stale commented on Mar 16, 2020

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. After 30 days from now, it will be closed if no further activity occurs. Thank you for your contributions.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions