@matheusbsbs / matheus-bagliano / commits / b02a17f2b7
Fork 0

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 <sdrake@xnet.co.nz> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Steven Drake committed Feb 26, 2010 at 17:00 UTC b02a17f2b7d0d3f5899ffdd9709ded8cea8ae019
1 file changed -2
builtin-init-db.c
-2
@@ -170,8 +170,6 @@ static void copy_templates(const char *template_dir)
170
171 static int git_init_db_config(const char *k, const char *v, void *cb)
172 {
173 - if (!v)
174 - return config_error_nonbool(k);
173 if (!strcmp(k, "init.templatedir"))
174 return git_config_pathname(&init_db_template_dir, k, v);
175