Skip to content

Commit

Permalink
Merge branch 'mh/libsecret-empty-password-fix' into jch
Browse files Browse the repository at this point in the history
Credential helper based on libsecret (in contrib/) has been updated.

* mh/libsecret-empty-password-fix:
  libsecret: retrieve empty password
  • Loading branch information
gitster committed Feb 27, 2024
2 parents 5096d13 + 8f1f202 commit f918ecd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions contrib/credential/libsecret/git-credential-libsecret.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ static int keyring_get(struct credential *c)
if (g_strv_length(parts) >= 1) {
g_free(c->password);
c->password = g_strdup(parts[0]);
} else {
g_free(c->password);
c->password = g_strdup("");
}
for (int i = 1; i < g_strv_length(parts); i++) {
if (g_str_has_prefix(parts[i], "password_expiry_utc=")) {
Expand Down

0 comments on commit f918ecd

Please sign in to comment.