Windows: Fix crash when user.name is not set in git config.

This commit is contained in:
Joey Hess 2014-10-31 16:14:12 -04:00
parent 8c622ec100
commit 0f6aaf8012
5 changed files with 18 additions and 22 deletions

View file

@ -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