Merge pull request #44 from lspitzner/master

Make git config lookups case insensitive
This commit is contained in:
Robert Hensing 2020-06-08 09:43:51 +02:00 committed by GitHub
commit 3f94c456e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,7 +7,7 @@ rec {
inherit (builtins) dirOf baseNameOf abort split hasAttr readFile readDir pathExists;
inherit (lib.lists) filter length head tail concatMap take;
inherit (lib.attrsets) filterAttrs mapAttrs attrNames;
inherit (lib.strings) hasPrefix removePrefix splitString;
inherit (lib.strings) hasPrefix removePrefix splitString toLower;
inherit (lib) strings flip any;
inherit lib;
inherit parse-ini;
@ -219,7 +219,7 @@ rec {
globalConfigItems
({section, key, value}:
for
(guard (section == "core" && key == "excludesFile"))
(guard (toLower section == "core" && toLower key == "excludesfile"))
(_:
resolveFile (~/.) value
)