aboutsummaryrefslogtreecommitdiff
path: root/Assistant/Threads
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2017-09-20 16:34:29 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2017-09-20 16:34:29 -0400
commit5f513ad675e6e128d5d55aca1b8c7d3b8e47f3ae (patch)
tree273ee361e2f19e136a564d8709fdc7cec12f1b20 /Assistant/Threads
parent14f19bdafd2dfcbece16214f168a3f8154a24581 (diff)
assistant: update export db after mergeing git-annex branch changes
Needed so that the assistant can download from exports. updateExportTreeFromLog is normally only run one time, but needs to be run repeatedly during the lifetime of the assistant. This commit was sponsored by Ethan Aubin on Patreon.
Diffstat (limited to 'Assistant/Threads')
-rw-r--r--Assistant/Threads/Merger.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/Assistant/Threads/Merger.hs b/Assistant/Threads/Merger.hs
index 5d40edea7..ff2fdc9a0 100644
--- a/Assistant/Threads/Merger.hs
+++ b/Assistant/Threads/Merger.hs
@@ -10,6 +10,7 @@ module Assistant.Threads.Merger where
import Assistant.Common
import Assistant.TransferQueue
import Assistant.BranchChange
+import Assistant.Sync
import Utility.DirWatcher
import Utility.DirWatcher.Types
import qualified Annex.Branch
@@ -62,7 +63,8 @@ onChange file
| isAnnexBranch file = do
branchChanged
diverged <- liftAnnex Annex.Branch.forceUpdate
- when diverged $
+ when diverged $ do
+ updateExportTreeFromLogAll
queueDeferredDownloads "retrying deferred download" Later
| otherwise = mergecurrent
where