From b02a17f2b7d0d3f5899ffdd9709ded8cea8ae019 Mon Sep 17 00:00:00 2001 From: Steven Drake Date: Fri, 26 Feb 2010 17:00:20 +1300 Subject: 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 --- builtin-init-db.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/builtin-init-db.c b/builtin-init-db.c index 0eb9efc939..a54f489782 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); -- cgit v1.2.3