Skip to content

Commit fd542ff

Browse files
author
Andrew McKnight
committed
Merge remote-tracking branch 'upstream/main' into fork_main
2 parents 64f319c + 5d5a7cb commit fd542ff

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

Sources/GitKit/Git.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ public final class Git: Shell {
1616
case cmd(Command, String? = nil)
1717
case addAll
1818
case status(short: Bool = false)
19+
case clone(url: String , dirName: String? = nil)
1920
case commit(message: String, allowEmpty: Bool = false, gpgSigned: Bool = false)
2021
case writeConfig(name: String, value: String)
2122
case readConfig(name: String)
@@ -69,7 +70,8 @@ public final class Git: Shell {
6970
}
7071
if gpgSigned {
7172
params.append("--gpg-sign")
72-
} else {
73+
}
74+
else {
7375
params.append("--no-gpg-sign")
7476
}
7577
case .clone(let url, let dirname):
@@ -166,7 +168,7 @@ public final class Git: Shell {
166168
params.append("--abbrev-ref")
167169
}
168170
params.append(revision)
169-
case .revList(let branch, let count, let revisions):
171+
case .revList(_, let count, let revisions):
170172
params = [Command.revList.rawValue]
171173
if count {
172174
params.append("--count")

Tests/GitKitTests/GitKitTests.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ final class GitKitTests: XCTestCase {
106106
self.assert(type: "output", result: statusOutput, expected: expectation)
107107
}
108108

109+
109110
func testCloneWithDirectory() throws {
110111
let path = self.currentPath()
111112

0 commit comments

Comments
 (0)