Commit 019409be by Nelson Elhage

Don't error on missing section, just continue

parent c4d7fa95
...@@ -1035,12 +1035,11 @@ static int read_on_variable( ...@@ -1035,12 +1035,11 @@ static int read_on_variable(
GIT_UNUSED(line); GIT_UNUSED(line);
GIT_UNUSED(line_len); GIT_UNUSED(line_len);
if (!current_section) { if (current_section) {
giterr_set(GITERR_CONFIG, "no section for key: %s", var_name); git_buf_puts(&buf, current_section);
return -1; git_buf_putc(&buf, '.');
} }
git_buf_puts(&buf, current_section);
git_buf_putc(&buf, '.');
for (c = var_name; *c; c++) for (c = var_name; *c; c++)
git_buf_putc(&buf, git__tolower(*c)); git_buf_putc(&buf, git__tolower(*c));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment