File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
src/GitVersion.Core.Tests/IntegrationTests Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,21 @@ public void DoesNotTakeVersionFromNameOfNonReleaseBranch()
26
26
fixture . AssertFullSemver ( "1.1.0-alpha.5" ) ;
27
27
}
28
28
29
+ [ TestCase ( "release" ) ]
30
+ [ TestCase ( "hotfix" ) ]
31
+ public void DoesNotTakeVersionFromNameWhenItHasBeenAccidentalSpecifiedInBranch ( string branch )
32
+ {
33
+ using var fixture = new EmptyRepositoryFixture ( "main" ) ;
34
+
35
+ fixture . MakeATaggedCommit ( "1.0.0" ) ;
36
+ fixture . BranchTo ( $ "{ branch } /downgrade-some-lib-to-3.2.1") ;
37
+ fixture . MakeACommit ( ) ;
38
+ fixture . Checkout ( "main" ) ;
39
+ fixture . MergeNoFF ( $ "{ branch } /downgrade-some-lib-to-3.2.1") ;
40
+
41
+ fixture . AssertFullSemver ( "1.0.1+2" ) ;
42
+ }
43
+
29
44
[ Test ]
30
45
public void TakesVersionFromNameOfBranchThatIsReleaseByConfig ( )
31
46
{
You can’t perform that action at this time.
0 commit comments