git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Having keywords without value is not a global error.
@ 2010-02-26  4:00 Steven Drake
  2010-02-26  4:00 ` [PATCH] t/t0001-init.sh: add test for 'init with init.templatedir set' Steven Drake
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Steven Drake @ 2010-02-26  4:00 UTC (permalink / raw)
  To: git

It is not a good Idea to give a config_error for _any_ keyword without a
value as it means that

	[section]
		keyword

sytle can not be using for setting bool type keyword.

Signed-off-by: Steven Drake <sdrake@xnet.co.nz>
---
 builtin/init-db.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/builtin/init-db.c b/builtin/init-db.c
index 9273942..edc40ff 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);
 
-- 
1.6.6

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-02-26  8:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-26  4:00 [PATCH] Having keywords without value is not a global error Steven Drake
2010-02-26  4:00 ` [PATCH] t/t0001-init.sh: add test for 'init with init.templatedir set' Steven Drake
2010-02-26  5:14 ` [PATCH] Having keywords without value is not a global error Junio C Hamano
2010-02-26  5:44   ` Steven Drake
2010-02-26  5:57     ` Junio C Hamano
2010-02-26  8:19 ` Alex Riesen
2010-02-26  8:35   ` Steven Drake

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).