Skip to content

Commit b101640

Browse files
author
Andrew McKnight
committed
fix test build
1 parent 9232d25 commit b101640

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Tests/GitKitTests/GitKitTests.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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"))

0 commit comments

Comments
 (0)