summaryrefslogtreecommitdiff
path: root/builtin-init-db.c
diff options
context:
space:
mode:
authorLibravatar Steven Drake <sdrake@xnet.co.nz>2010-02-26 17:00:20 +1300
committerLibravatar Junio C Hamano <gitster@pobox.com>2010-02-25 22:47:36 -0800
commitb02a17f2b7d0d3f5899ffdd9709ded8cea8ae019 (patch)
treee4407f226ca8b20db5343a49d95b317dd96a2ab4 /builtin-init-db.c
parentAdd a "TEMPLATE DIRECTORY" section to git-init[1]. (diff)
downloadtgif-b02a17f2b7d0d3f5899ffdd9709ded8cea8ae019.tar.xz
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>
Diffstat (limited to 'builtin-init-db.c')
-rw-r--r--builtin-init-db.c2
1 files changed, 0 insertions, 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);