From: Steven Drake Date: Fri, 26 Feb 2010 04:00:20 +0000 (+1300) Subject: init: having keywords without value is not a global error. X-Git-Tag: v1.7.1-rc0~72^2~2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b02a17f2b7d0d3f5899ffdd9709ded8cea8ae019;p=git.git init: having keywords without value is not a global error. We may later add a new configuration variable in "init" section that takes a boolean value. Erroring out at the beginning of the config parser makes life harder for later enhancement. The existing configuration variable is parsed by git_config_pathname() that checks and rejects init.templatedir that is unset without this extra check. Remove it. Signed-off-by: Steven Drake Signed-off-by: Junio C Hamano --- diff --git a/builtin-init-db.c b/builtin-init-db.c index 0eb9efc93..a54f48978 100644 --- a/builtin-init-db.c +++ b/builtin-init-db.c @@ -170,8 +170,6 @@ static void copy_templates(const char *template_dir) static int git_init_db_config(const char *k, const char *v, void *cb) { - if (!v) - return config_error_nonbool(k); if (!strcmp(k, "init.templatedir")) return git_config_pathname(&init_db_template_dir, k, v);