summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d8a8488)
raw | patch | inline | side by side (parent: d8a8488)
author | Steven Drake <sdrake@xnet.co.nz> | |
Fri, 26 Feb 2010 04:00:20 +0000 (17:00 +1300) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 26 Feb 2010 06:47:36 +0000 (22:47 -0800) |
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>
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>
builtin-init-db.c | patch | blob | history |
diff --git a/builtin-init-db.c b/builtin-init-db.c
index 0eb9efc9396bb5edb9f306700372b83ac2105140..a54f4897829ca7f1a24dfd667afb192d220ee9f6 100644 (file)
--- a/builtin-init-db.c
+++ b/builtin-init-db.c
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);