From: Junio C Hamano Date: Tue, 9 Sep 2014 19:53:56 +0000 (-0700) Subject: Merge branch 'jk/command-line-config-empty-string' X-Git-Tag: v2.2.0-rc0~169 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/93424a0fd882a3ed1c1f7a8b6fe71fdaa21cce99 Merge branch 'jk/command-line-config-empty-string' "git -c section.var command" and "git -c section.var= command" should pass the configuration differently (the former should be a boolean true, the latter should be an empty string). * jk/command-line-config-empty-string: config: teach "git -c" to recognize an empty string --- 93424a0fd882a3ed1c1f7a8b6fe71fdaa21cce99 diff --cc config.c index a191328a9d,5390a63acb..01e0bdbafd --- a/config.c +++ b/config.c @@@ -188,8 -183,8 +196,8 @@@ int git_config_parse_parameter(const ch strbuf_list_free(pair); return error("bogus config parameter: %s", text); } - lowercase(pair[0]->buf); + strbuf_tolower(pair[0]); - if (fn(pair[0]->buf, pair[1] ? pair[1]->buf : NULL, data) < 0) { + if (fn(pair[0]->buf, value, data) < 0) { strbuf_list_free(pair); return -1; }