Make git config lookups case insensitive

This commit is contained in:
Lennart Spitzner 2020-06-05 19:09:57 +02:00
parent 00b237fb18
commit 97d5366529

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
)