Windows: Fix crash when user.name is not set in git config.
This commit is contained in:
parent
8c622ec100
commit
0f6aaf8012
5 changed files with 18 additions and 22 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue