From 567ad2c0f90fe63d1fde2c0269be8df17675148c Mon Sep 17 00:00:00 2001 From: Thomas Koutcher Date: Thu, 15 Oct 2020 21:59:20 +0000 Subject: credential: load default config Make `git credential fill` honour the core.askPass variable. Signed-off-by: Thomas Koutcher [jk: added test] Signed-off-by: Jeff King Signed-off-by: Junio C Hamano --- builtin/credential.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'builtin') diff --git a/builtin/credential.c b/builtin/credential.c index 879acfbcda..d75dcdc64a 100644 --- a/builtin/credential.c +++ b/builtin/credential.c @@ -1,6 +1,7 @@ #include "git-compat-util.h" #include "credential.h" #include "builtin.h" +#include "config.h" static const char usage_msg[] = "git credential [fill|approve|reject]"; @@ -10,6 +11,8 @@ int cmd_credential(int argc, const char **argv, const char *prefix) const char *op; struct credential c = CREDENTIAL_INIT; + git_config(git_default_config, NULL); + if (argc != 2 || !strcmp(argv[1], "-h")) usage(usage_msg); op = argv[1]; -- cgit v1.2.3