You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You supply them using the CredentialProvider flags. For instance if you're doing a fetch set GTRepositoryRemoteOptionsCredentialProvider.
In Swift this could look like:
letauth=GTCredentialProvider{(type,url,username)->GTCredential?inletcred=try?GTCredential(userName:username,publicKeyString:publicKey,privateKeyString:privateKey,passphrase:passphrase)returncred}varoptions=[String:Any]()options[GTRepositoryCloneOptionsCredentialProvider]=authoptions[GTRepositoryRemoteOptionsCredentialProvider]=auth
//Then call fetch or clone using these options:
GTRepository.clone(from:url,toWorkingDirectory:path,options:options)
Activity
iain17 commentedon Sep 14, 2020
You supply them using the CredentialProvider flags. For instance if you're doing a fetch set GTRepositoryRemoteOptionsCredentialProvider.
In Swift this could look like: