remove store and temp store directory before clone
This commit is contained in:
parent
545a5b11bb
commit
d9b931345a
1 changed files with 3 additions and 0 deletions
|
|
@ -99,6 +99,9 @@ class PasswordStore {
|
|||
credential: GitCredential,
|
||||
transferProgressBlock: @escaping (UnsafePointer<git_transfer_progress>, UnsafeMutablePointer<ObjCBool>) -> Void,
|
||||
checkoutProgressBlock: @escaping (String?, UInt, UInt) -> Void) throws {
|
||||
Utils.removeFileIfExists(at: storeURL)
|
||||
Utils.removeFileIfExists(at: tempStoreURL)
|
||||
|
||||
let credentialProvider = try credential.credentialProvider()
|
||||
let options: [String: Any] = [
|
||||
GTRepositoryCloneOptionsCredentialProvider: credentialProvider,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue