We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 628f127 commit a1910d2Copy full SHA for a1910d2
src/GitVersionCore.Tests/IntegrationTests/ReleaseBranchScenarios.cs
@@ -360,4 +360,18 @@ public void MergeOnReleaseBranchShouldNotResetCount()
360
fixture.AssertFullSemver(config, "2.0.0-beta.2");
361
}
362
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
377
0 commit comments