aboutsummaryrefslogtreecommitdiff
path: root/Config.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Config.hs')
-rw-r--r--Config.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Config.hs b/Config.hs
index f2f12a266..ad67a9a0d 100644
--- a/Config.hs
+++ b/Config.hs
@@ -83,7 +83,7 @@ isDirect = annexDirect <$> Annex.getGitConfig
setDirect :: Bool -> Annex ()
setDirect b = do
- setConfig (annexConfig "direct") $ if b then "true" else "false"
+ setConfig (annexConfig "direct") (Git.Config.boolConfig b)
Annex.changeGitConfig $ \c -> c { annexDirect = b }
{- Gets the http headers to use. -}