File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -121,8 +121,8 @@ final class GitKitTests: XCTestCase {
121121
122122 // Initialize a repository and make an initial commit
123123 try git. run ( . raw( " init " ) )
124- try git. run ( . commit( message: " initial commit " , true ) )
125-
124+ try git. run ( . commit( message: " initial commit " , allowEmpty : true ) )
125+
126126 // Test 1: Get abbreviated reference name for HEAD
127127 let abbrevRef = try git. run ( . revParse( abbrevRef: true , revision: " HEAD " ) )
128128 XCTAssertEqual ( abbrevRef, " main " , " Should return abbreviated reference name " )
@@ -160,7 +160,7 @@ final class GitKitTests: XCTestCase {
160160
161161 // Initialize a repository and make an initial commit
162162 try git. run ( . raw( " init " ) )
163- try git. run ( . commit( message: " initial commit " , true ) )
163+ try git. run ( . commit( message: " initial commit " , allowEmpty : true ) )
164164
165165 // Test 1: Get abbreviated reference name for HEAD
166166 let abbrevRef = try git. run ( . revParse( abbrevRef: true , revision: " HEAD " ) )
You can’t perform that action at this time.
0 commit comments