File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
src/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 @@ -204,4 +204,22 @@ public void WhenMultipleDevelopBranchesExistAndCurrentBranchHasIncrementInheritP
204
204
fixture . AssertFullSemver ( "1.1.0-x.1+3" ) ;
205
205
}
206
206
}
207
+
208
+ [ Test ]
209
+ public void TagOnHotfixShouldNotAffectDevelop ( )
210
+ {
211
+ using ( var fixture = new BaseGitFlowRepositoryFixture ( "1.2.0" ) )
212
+ {
213
+ Commands . Checkout ( fixture . Repository , "master" ) ;
214
+ var hotfix = fixture . Repository . CreateBranch ( "hotfix-1.2.1" ) ;
215
+ Commands . Checkout ( fixture . Repository , hotfix ) ;
216
+ fixture . Repository . MakeACommit ( ) ;
217
+ fixture . AssertFullSemver ( "1.2.1-beta.1+1" ) ;
218
+ fixture . Repository . ApplyTag ( "1.2.1-beta.1" ) ;
219
+ fixture . AssertFullSemver ( "1.2.1-beta.1" ) ;
220
+ Commands . Checkout ( fixture . Repository , "develop" ) ;
221
+ fixture . Repository . MakeACommit ( ) ;
222
+ fixture . AssertFullSemver ( "1.3.0-unstable.1" ) ; // fails, gets 1.3.0-beta.1
223
+ }
224
+ }
207
225
}
You can’t perform that action at this time.
0 commit comments