From 97d53665298d2b31b79e5fe4b60edb12a6661547 Mon Sep 17 00:00:00 2001 From: Lennart Spitzner Date: Fri, 5 Jun 2020 19:09:57 +0200 Subject: [PATCH] Make git config lookups case insensitive --- find-files.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/find-files.nix b/find-files.nix index a5ff411..ceccc65 100644 --- a/find-files.nix +++ b/find-files.nix @@ -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 )