Skip to content

HotFix tag affecting develop #520

@JakeGinnivan

Description

@JakeGinnivan

TrackMergeTargetBaseVersionStrategy is picking up a hotfix branch incorrectly causing develop to have a tag of -beta.

Here is a failing test:

        using (var fixture = new BaseGitFlowRepositoryFixture("1.2.0"))
        {
            fixture.Repository.Checkout("master");
            fixture.Repository.CreateBranch("hotfix-1.2.1").Checkout();
            fixture.Repository.MakeACommit();

            fixture.AssertFullSemver("1.2.1-beta.1+1");
            fixture.Repository.ApplyTag("1.2.1-beta.1");
            fixture.AssertFullSemver("1.2.1-beta.1");
            fixture.Repository.Checkout("develop");
            fixture.Repository.MakeACommit();
            fixture.AssertFullSemver("1.3.0-unstable.1"); // fails, gets 1.3.0-beta.1
       }

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions