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
int gitError = git_cred_userpass_plaintext_new(&cred, userName.UTF8String, password.UTF8String);
48
+
git_credential *cred;
49
+
int gitError = git_credential_userpass_plaintext_new(&cred, userName.UTF8String, password.UTF8String);
50
50
if (gitError != GIT_OK) {
51
51
if (error) *error = [NSErrorgit_errorFor:gitError description:@"Failed to create credentials object"failureReason:@"There was an error creating a credential object for username %@.", userName];
int gitError = git_cred_ssh_key_new(&cred, userName.UTF8String, publicKeyPath.fileSystemRepresentation, privateKeyPath.fileSystemRepresentation, passphrase.UTF8String);
64
+
git_credential *cred;
65
+
int gitError = git_credential_ssh_key_new(&cred, userName.UTF8String, publicKeyPath.fileSystemRepresentation, privateKeyPath.fileSystemRepresentation, passphrase.UTF8String);
66
66
if (gitError != GIT_OK) {
67
67
if (error) *error = [NSErrorgit_errorFor:gitError description:@"Failed to create credentials object"failureReason:@"There was an error creating a credential object for username %@ with the provided public/private key pair.\nPublic key: %@\nPrivate key: %@", userName, publicKeyURL, privateKeyURL];
int gitError = git_cred_ssh_key_memory_new(&cred, userName.UTF8String, publicKeyString.UTF8String, privateKeyString.UTF8String, passphrase.UTF8String);
77
+
git_credential *cred;
78
+
int gitError = git_credential_ssh_key_memory_new(&cred, userName.UTF8String, publicKeyString.UTF8String, privateKeyString.UTF8String, passphrase.UTF8String);
79
79
if (gitError != GIT_OK) {
80
80
if (error) *error = [NSErrorgit_errorFor:gitError description:@"Failed to create credentials object"failureReason:@"There was an error creating a credential object for username %@ with the provided public/private key pair.\nPublic key: %@", userName, publicKeyString];
0 commit comments