@@ -329,4 +329,35 @@ public void HotfixOffReleaseBranchShouldNotResetCount()
329
329
fixture . AssertFullSemver ( config , "2.0.0-beta.7" ) ;
330
330
}
331
331
}
332
+ [ Test ]
333
+ public void MergeOnReleaseBranchShouldNotResetCount ( )
334
+ {
335
+ var config = new Config
336
+ {
337
+ AssemblyVersioningScheme = AssemblyVersioningScheme . MajorMinorPatchTag ,
338
+ VersioningMode = VersioningMode . ContinuousDeployment ,
339
+ } ;
340
+ using ( var fixture = new EmptyRepositoryFixture ( ) )
341
+ {
342
+ const string TaggedVersion = "1.0.3" ;
343
+ fixture . Repository . MakeATaggedCommit ( TaggedVersion ) ;
344
+ fixture . Repository . CreateBranch ( "develop" ) ;
345
+ fixture . Repository . Checkout ( "develop" ) ;
346
+ fixture . Repository . MakeACommit ( ) ;
347
+
348
+ fixture . Repository . CreateBranch ( "release/2.0.0" ) ;
349
+
350
+ fixture . Repository . CreateBranch ( "release/2.0.0-xxx" ) ;
351
+ fixture . Repository . Checkout ( "release/2.0.0-xxx" ) ;
352
+ fixture . Repository . MakeACommit ( ) ;
353
+ fixture . AssertFullSemver ( config , "2.0.0-beta.1" ) ;
354
+
355
+ fixture . Repository . Checkout ( "release/2.0.0" ) ;
356
+ fixture . Repository . MakeACommit ( ) ;
357
+ fixture . AssertFullSemver ( config , "2.0.0-beta.1" ) ;
358
+
359
+ fixture . Repository . MergeNoFF ( "release/2.0.0-xxx" ) ;
360
+ fixture . AssertFullSemver ( config , "2.0.0-beta.2" ) ;
361
+ }
362
+ }
332
363
}
0 commit comments