From 582316f66f0e664d65c78e408807c535b4ef66e2 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sun, 23 Sep 2012 12:43:14 -0400 Subject: avoid webapp crash on startup when there's no ~/.gitconfig git config --list --global exits nonzero when there's no global config --- Command/WebApp.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Command') diff --git a/Command/WebApp.hs b/Command/WebApp.hs index ae37b324c..f44053250 100644 --- a/Command/WebApp.hs +++ b/Command/WebApp.hs @@ -105,7 +105,7 @@ firstRun = do putMVar v "" takeMVar v mainthread v _url htmlshim = do - browser <- webBrowser <$> Git.Config.global + browser <- maybe Nothing webBrowser <$> Git.Config.global openBrowser browser htmlshim _wait <- takeMVar v -- cgit v1.2.3