Merge branch 'dk/libsecret-unlock-to-load-fix'
authorJunio C Hamano <gitster@pobox.com>
Thu, 9 Nov 2017 05:31:30 +0000 (14:31 +0900)
committerJunio C Hamano <gitster@pobox.com>
Thu, 9 Nov 2017 05:31:30 +0000 (14:31 +0900)
The credential helper for libsecret (in contrib/) has been improved
to allow possibly prompting the end user to unlock secrets that are
currently locked (otherwise the secrets may not be loaded).

* dk/libsecret-unlock-to-load-fix:
credential-libsecret: unlock locked secrets

contrib/credential/libsecret/git-credential-libsecret.c
index 4c56979d8a08baf5ecfe5922a3239b8e183ba9c0..b4750c9ee89d29e16102a0fa0134c2b6cfe74cd0 100644 (file)
@@ -104,7 +104,7 @@ static int keyring_get(struct credential *c)
        items = secret_service_search_sync(service,
                                           SECRET_SCHEMA_COMPAT_NETWORK,
                                           attributes,
-                                          SECRET_SEARCH_LOAD_SECRETS,
+                                          SECRET_SEARCH_LOAD_SECRETS | SECRET_SEARCH_UNLOCK,
                                           NULL,
                                           &error);
        g_hash_table_unref(attributes);