From 4a803195c422dfbfa447064f8b59100c07cc4676 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Thu, 17 Nov 2016 17:35:49 +0100 Subject: [PATCH] fixup! mingw: respect core.hidedotfiles = false in git-init again --- builtin/init-db.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/builtin/init-db.c b/builtin/init-db.c index 911e4822af..6c6cc66ae7 100644 --- a/builtin/init-db.c +++ b/builtin/init-db.c @@ -154,13 +154,8 @@ static int git_init_db_config(const char *k, const char *v, void *cb) if (!strcmp(k, "init.templatedir")) return git_config_pathname(&init_db_template_dir, k, v); - if (!strcmp(k, "core.hidedotfiles")) { - if (v && !strcasecmp(v, "dotgitonly")) - hide_dotfiles = HIDE_DOTFILES_DOTGITONLY; - else - hide_dotfiles = git_config_bool(k, v); - return 0; - } + if (starts_with(k, "core.")) + return platform_core_config(k, v); return 0; }