From a0f689bcd87c63fe6efdc5ad112a44241d74259e Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 25 Oct 2012 18:17:32 -0400 Subject: Use USER and HOME environment when set, and only fall back to getpwent, which doesn't work with LDAP or NIS. --- Git/Config.hs | 1 + 1 file changed, 1 insertion(+) (limited to 'Git/Config.hs') diff --git a/Git/Config.hs b/Git/Config.hs index cc9b27b69..0d6d67fc0 100644 --- a/Git/Config.hs +++ b/Git/Config.hs @@ -15,6 +15,7 @@ import Common import Git import Git.Types import qualified Git.Construct +import Utility.UserInfo {- Returns a single git config setting, or a default value if not set. -} get :: String -> String -> Repo -> String -- cgit v1.2.3