summaryrefslogtreecommitdiffstats
path: root/git-access.c
diff options
context:
space:
mode:
Diffstat (limited to 'git-access.c')
-rw-r--r--git-access.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/git-access.c b/git-access.c
index c0e1a7710..9189ae08d 100644
--- a/git-access.c
+++ b/git-access.c
@@ -77,7 +77,7 @@ int credential_ssh_cb(git_cred **out,
void *payload)
{
const char *priv_key = format_string("%s/%s", system_default_directory(), "ssrf_remote.key");
- const char *passphrase = copy_string(prefs.passphrase);
+ const char *passphrase = prefs.cloud_storage_password ? strdup(prefs.cloud_storage_password) : strdup("");
return git_cred_ssh_key_new(out, username_from_url, NULL, priv_key, passphrase);
}
@@ -88,7 +88,7 @@ int credential_https_cb(git_cred **out,
void *payload)
{
const char *username = "ssrftest";
- const char *password = copy_string(prefs.passphrase);
+ const char *password = prefs.cloud_storage_password ? strdup(prefs.cloud_storage_password) : strdup("");
return git_cred_userpass_plaintext_new(out, username, password);
}
#endif