Affected Version: v2.10-rc0-861-ga026116
What steps will reproduce the problem?
1. Have a config for gerrit which looks like this:
[commentlink "exactname"]
...
[commentlink "exactname"]
...
What is the expected output? What do you see instead?
Expected: As I made an obvious mistake, I want to get warned about the miss configuration.
Actual output: The last section with the subsection name is used for configuring the commentlinks.
Please provide any additional information below.
I am not sure if this to be fixed near the comment link processing or if this behavior is inherited from the git config file format.
IIRC it's valid to say: [section] value = foo [othersection] ... [section] value = bar and this is equivalent to: [section] value = foo value = bar [othersection] ... And config.getString("section", null, "value") would return bar in both cases. I think the thing you want to warn about is when there are multiple of any of the recognized keys of the commentlink section.