@@ -28,7 +28,7 @@ public async Task LookupVersionLabel_IncrementMajorOnly_IncrementsCorrectly()
2828 {
2929 Directory . CreateDirectory ( tempPath ) ;
3030
31- await TestUtilities . RunGitCommand ( tempPath , "init" ) ;
31+ await TestUtilities . InitializeGitRepositoryWithMainBranch ( tempPath ) ;
3232 await TestUtilities . RunGitCommand ( tempPath , "config user.email \" [email protected] \" " ) ; 3333 await TestUtilities . RunGitCommand ( tempPath , "config user.name \" Test User\" " ) ;
3434
@@ -67,7 +67,7 @@ public async Task LookupVersionLabel_IncrementTwoComponent_IncrementsMinor()
6767 {
6868 Directory . CreateDirectory ( tempPath ) ;
6969
70- await TestUtilities . RunGitCommand ( tempPath , "init" ) ;
70+ await TestUtilities . InitializeGitRepositoryWithMainBranch ( tempPath ) ;
7171 await TestUtilities . RunGitCommand ( tempPath , "config user.email \" [email protected] \" " ) ; 7272 await TestUtilities . RunGitCommand ( tempPath , "config user.name \" Test User\" " ) ;
7373
@@ -105,7 +105,7 @@ public async Task LookupVersionLabel_IncrementThreeComponent_IncrementsBuild()
105105 {
106106 Directory . CreateDirectory ( tempPath ) ;
107107
108- await TestUtilities . RunGitCommand ( tempPath , "init" ) ;
108+ await TestUtilities . InitializeGitRepositoryWithMainBranch ( tempPath ) ;
109109 await TestUtilities . RunGitCommand ( tempPath , "config user.email \" [email protected] \" " ) ; 110110 await TestUtilities . RunGitCommand ( tempPath , "config user.name \" Test User\" " ) ;
111111
@@ -143,7 +143,7 @@ public async Task LookupVersionLabel_IncrementFourComponent_IncrementsRevision()
143143 {
144144 Directory . CreateDirectory ( tempPath ) ;
145145
146- await TestUtilities . RunGitCommand ( tempPath , "init" ) ;
146+ await TestUtilities . InitializeGitRepositoryWithMainBranch ( tempPath ) ;
147147 await TestUtilities . RunGitCommand ( tempPath , "config user.email \" [email protected] \" " ) ; 148148 await TestUtilities . RunGitCommand ( tempPath , "config user.name \" Test User\" " ) ;
149149
@@ -181,7 +181,7 @@ public async Task LookupVersionLabel_ZeroComponentValues_HandledCorrectly()
181181 {
182182 Directory . CreateDirectory ( tempPath ) ;
183183
184- await TestUtilities . RunGitCommand ( tempPath , "init" ) ;
184+ await TestUtilities . InitializeGitRepositoryWithMainBranch ( tempPath ) ;
185185 await TestUtilities . RunGitCommand ( tempPath , "config user.email \" [email protected] \" " ) ; 186186 await TestUtilities . RunGitCommand ( tempPath , "config user.name \" Test User\" " ) ;
187187
@@ -219,7 +219,7 @@ public async Task LookupVersionLabel_MultipleIncrementsFromSameBase_AccumulatesC
219219 {
220220 Directory . CreateDirectory ( tempPath ) ;
221221
222- await TestUtilities . RunGitCommand ( tempPath , "init" ) ;
222+ await TestUtilities . InitializeGitRepositoryWithMainBranch ( tempPath ) ;
223223 await TestUtilities . RunGitCommand ( tempPath , "config user.email \" [email protected] \" " ) ; 224224 await TestUtilities . RunGitCommand ( tempPath , "config user.name \" Test User\" " ) ;
225225
@@ -261,7 +261,7 @@ public async Task LookupVersionLabel_MixedComponentCounts_ChoosesLargestCorrectl
261261 {
262262 Directory . CreateDirectory ( tempPath ) ;
263263
264- await TestUtilities . RunGitCommand ( tempPath , "init" ) ;
264+ await TestUtilities . InitializeGitRepositoryWithMainBranch ( tempPath ) ;
265265 await TestUtilities . RunGitCommand ( tempPath , "config user.email \" [email protected] \" " ) ; 266266 await TestUtilities . RunGitCommand ( tempPath , "config user.name \" Test User\" " ) ;
267267
@@ -300,7 +300,7 @@ public async Task LookupVersionLabel_EdgeCaseVersionComparisons_HandledCorrectly
300300 {
301301 Directory . CreateDirectory ( tempPath ) ;
302302
303- await TestUtilities . RunGitCommand ( tempPath , "init" ) ;
303+ await TestUtilities . InitializeGitRepositoryWithMainBranch ( tempPath ) ;
304304 await TestUtilities . RunGitCommand ( tempPath , "config user.email \" [email protected] \" " ) ; 305305 await TestUtilities . RunGitCommand ( tempPath , "config user.name \" Test User\" " ) ;
306306
@@ -339,7 +339,7 @@ public async Task LookupVersionLabel_LargeComponentValues_HandledCorrectly()
339339 {
340340 Directory . CreateDirectory ( tempPath ) ;
341341
342- await TestUtilities . RunGitCommand ( tempPath , "init" ) ;
342+ await TestUtilities . InitializeGitRepositoryWithMainBranch ( tempPath ) ;
343343 await TestUtilities . RunGitCommand ( tempPath , "config user.email \" [email protected] \" " ) ; 344344 await TestUtilities . RunGitCommand ( tempPath , "config user.name \" Test User\" " ) ;
345345
0 commit comments