diff options
author | Joey Hess <joey@kitenet.net> | 2014-10-31 16:14:12 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2014-10-31 16:14:12 -0400 |
commit | e7b70553d40a8bb2f894ce311cf618826095c294 (patch) | |
tree | 93b53503895fe726b9187e33cef50681c06828d4 /Annex/Environment.hs | |
parent | 90d840d64e9e94d5cd8c1c1fa2fa74855217e83d (diff) |
Windows: Fix crash when user.name is not set in git config.
Diffstat (limited to 'Annex/Environment.hs')
-rw-r--r-- | Annex/Environment.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Annex/Environment.hs b/Annex/Environment.hs index 1ddd2b238..ffdd07157 100644 --- a/Annex/Environment.hs +++ b/Annex/Environment.hs @@ -32,7 +32,7 @@ checkEnvironment = do liftIO checkEnvironmentIO checkEnvironmentIO :: IO () -checkEnvironmentIO = whenM (null <$> myUserGecos) $ do +checkEnvironmentIO = whenM (isNothing <$> myUserGecos) $ do username <- myUserName ensureEnv "GIT_AUTHOR_NAME" username ensureEnv "GIT_COMMITTER_NAME" username |