Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-05-30 15:51:26 +0300
committerJunio C Hamano <gitster@pobox.com>2018-05-30 15:51:26 +0300
commit23057708160db47fe96e6a0b2a547b3f30813e7e (patch)
tree0e4ffbf7ee610c01fd8a5f40a61b14ea23717f47
parente12cbeaa624b82bc00d585bb24c8034fbf5f9de2 (diff)
parent438a87d1e25fa6715f38e30ee394d34e71d44acb (diff)
Merge branch 'js/empty-config-section-fix'
Error codepath fix. * js/empty-config-section-fix: config: a user-provided invalid section is not a BUG
-rw-r--r--config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.c b/config.c
index f47fcaf88e..2c573ad3dd 100644
--- a/config.c
+++ b/config.c
@@ -2359,7 +2359,7 @@ static int store_aux_event(enum config_event_t type,
if (type == CONFIG_EVENT_SECTION) {
if (cf->var.len < 2 || cf->var.buf[cf->var.len - 1] != '.')
- BUG("Invalid section name '%s'", cf->var.buf);
+ return error("invalid section name '%s'", cf->var.buf);
/* Is this the section we were looking for? */
store->is_keys_section =