summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2020-11-02 13:17:39 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-11-02 13:17:39 -0800
commite0f6ad2984918e316df9bd5bf6b90fe6e885beee (patch)
tree579b486456d65789321f32f99be0d1be8e14c7f6 /builtin
parentMerge branch 'dl/diff-merge-base' (diff)
parentcredential: load default config (diff)
downloadtgif-e0f6ad2984918e316df9bd5bf6b90fe6e885beee.tar.xz
Merge branch 'tk/credential-config'
"git credential' didn't honor the core.askPass configuration variable (among other things), which has been corrected. * tk/credential-config: credential: load default config
Diffstat (limited to 'builtin')
-rw-r--r--builtin/credential.c3
1 files changed, 3 insertions, 0 deletions
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];