Config should preserve case of setting
Bug #1031355 reported by
Curt Moore
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Dulwich |
Triaged
|
Medium
|
Unassigned |
Bug Description
When reading a config from a file, config.py currently performs a lower() operation on any setting keys read from the configuration file. In the event that the config file contains a camelCase configuration option, this option is lowercased. When the config is re-written to disk, the result is that we have two copies of the same config setting key, one camelCase and one lowercase.
The attached patch does not lowercase the settings keys upon reading them, resulting in only one config option being written to disk.
To post a comment you must log in.
I'm not sure if this is the right fix - lookups should be case insensitive, that's why we lower case the setting.
Any chance you can add a unit test for this?