File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 " )
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments