]> Sergey Matveev's repositories - public-inbox.git/commit
config: warn on multiple values for some fields
authorEric Wong <e@80x24.org>
Sun, 20 Sep 2020 01:43:15 +0000 (01:43 +0000)
committerEric Wong <e@80x24.org>
Sat, 26 Dec 2020 19:29:59 +0000 (19:29 +0000)
commitd6d442866106248eca072d2e19ffd1ae05883c14
tree90bdf0cbfdab69e79b91e4c061583d03db9c2666
parent64f7ab3a571b9db08d27d258f3066822fd2667bb
config: warn on multiple values for some fields

Our code doesn't support multi-values for these, and having
unexpected arrays leads to unexpected results (e.g. showing
stuff like "ARRAY(0xDEADBEEFADD12E55)" in user interfaces).  So
warn and only use the last value (matching git-config(1)
behavior without `--get-all').

(cherry picked from commit c8fe4673056571ed251c3a20cb0bbec586c60bd6)
lib/PublicInbox/Config.pm