Skip to content
Snippets Groups Projects
Commit 4b340593 authored by Martin Stenberg's avatar Martin Stenberg Committed by Junio C Hamano
Browse files

config: report errors at the EOL with correct line number


A section in a config file with a missing "]" reports the next line
as bad, same goes to a value with a missing end quote.

This happens because the error is not detected until the end of the
line, when line number is already increased. Fix this by decreasing
line number by one for these cases.

Signed-off-by: default avatarMartin Stenberg <martin@gnutiken.se>
Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
parent d909e076
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment