Skip to content

Commit a1910d2

Browse files
author
EUROPE\n5e
committed
Add test that describes what I think is a bug in how commit source is used to find commit messages.
1 parent 628f127 commit a1910d2

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/GitVersionCore.Tests/IntegrationTests/ReleaseBranchScenarios.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,4 +360,18 @@ public void MergeOnReleaseBranchShouldNotResetCount()
360360
fixture.AssertFullSemver(config, "2.0.0-beta.2");
361361
}
362362
}
363+
364+
[Test]
365+
public void ReleaseBranchShouldUseBranchNameVersionDespiteBumpInPreviousCommit()
366+
{
367+
using (var fixture = new EmptyRepositoryFixture())
368+
{
369+
fixture.Repository.MakeATaggedCommit("1.0");
370+
fixture.Repository.MakeACommit("+semver:major");
371+
372+
Commands.Checkout(fixture.Repository, fixture.Repository.CreateBranch("release/2.0"));
373+
374+
fixture.AssertFullSemver("2.0.0-beta.1+0");
375+
}
376+
}
363377
}

0 commit comments

Comments
 (0)