summaryrefslogtreecommitdiff
path: root/CmdLine.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-06-17 20:41:17 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-06-17 20:41:27 -0400
commitfa8116c070eb695f27e56a1e6384b8ef59bb40d8 (patch)
tree7338a60fc2e6c6e7d22c696006a4bf9cce1b1a7e /CmdLine.hs
parent4dfa412c10bf5811858da509cef8558c8bcc0be3 (diff)
annex.debug can now be set to enable debug logging by default. The webapp's debugging check box does this.
Diffstat (limited to 'CmdLine.hs')
-rw-r--r--CmdLine.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/CmdLine.hs b/CmdLine.hs
index 8f4c99269..d9a410369 100644
--- a/CmdLine.hs
+++ b/CmdLine.hs
@@ -48,6 +48,8 @@ dispatch fuzzyok allargs allcmds commonoptions fields header getgitrepo = do
checkfuzzy
forM_ fields $ uncurry Annex.setField
sequence_ flags
+ whenM (annexDebug <$> Annex.getGitConfig) $
+ liftIO enableDebugOutput
prepCommand cmd params
tryRun state' cmd $ [startup] ++ actions ++ [shutdown $ cmdnocommit cmd]
where