File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
GitVersionCore.Tests/IntegrationTests Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -48,4 +48,22 @@ public void TestFeatureBranch()
48
48
fixture . AssertFullSemver ( "1.0.1-test.1+5" ) ;
49
49
}
50
50
}
51
+
52
+ [ Test ]
53
+ public void WhenTwoFeatureBranchPointToTheSameCommit ( )
54
+ {
55
+ using ( var fixture = new EmptyRepositoryFixture ( new Config ( ) ) )
56
+ {
57
+ fixture . Repository . MakeACommit ( ) ;
58
+ fixture . Repository . CreateBranch ( "develop" ) ;
59
+ fixture . Repository . Checkout ( "develop" ) ;
60
+ fixture . Repository . CreateBranch ( "feature/feature1" ) ;
61
+ fixture . Repository . Checkout ( "feature/feature1" ) ;
62
+ fixture . Repository . MakeACommit ( ) ;
63
+ fixture . Repository . CreateBranch ( "feature/feature2" ) ;
64
+ fixture . Repository . Checkout ( "feature/feature2" ) ;
65
+
66
+ fixture . AssertFullSemver ( "1.0.1-test.1+5" ) ;
67
+ }
68
+ }
51
69
}
You can’t perform that action at this time.
0 commit comments