summaryrefslogtreecommitdiff
path: root/Assistant
diff options
context:
space:
mode:
Diffstat (limited to 'Assistant')
-rw-r--r--Assistant/Threads/Watcher.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Assistant/Threads/Watcher.hs b/Assistant/Threads/Watcher.hs
index 4b82a799d..90bb3dc78 100644
--- a/Assistant/Threads/Watcher.hs
+++ b/Assistant/Threads/Watcher.hs
@@ -42,6 +42,7 @@ import Annex.InodeSentinal
import Git.Types
import Git.FilePath
import Config
+import Config.GitConfig
import Utility.ThreadScheduler
import Logs.Location
import qualified Database.Keys
@@ -83,7 +84,7 @@ instance E.Exception WatcherControl
watchThread :: NamedThread
watchThread = namedThread "Watcher" $
- ifM (liftAnnex $ annexAutoCommit <$> Annex.getGitConfig)
+ ifM (liftAnnex $ getGitConfigVal annexAutoCommit)
( runWatcher
, waitFor ResumeWatcher runWatcher
)