summaryrefslogtreecommitdiff
path: root/Assistant
diff options
context:
space:
mode:
Diffstat (limited to 'Assistant')
-rw-r--r--Assistant/Threads/Merger.hs7
1 files changed, 7 insertions, 0 deletions
diff --git a/Assistant/Threads/Merger.hs b/Assistant/Threads/Merger.hs
index 521e5bda6..0080ef964 100644
--- a/Assistant/Threads/Merger.hs
+++ b/Assistant/Threads/Merger.hs
@@ -19,6 +19,7 @@ import qualified Annex.Branch
import qualified Git
import qualified Git.Branch
import qualified Command.Sync
+import qualified Database.Keys
import Annex.TaggedPush
import Remote (remoteFromUUID)
@@ -89,6 +90,12 @@ onChange file
currbranch mergeConfig
Git.Branch.AutomaticCommit
changedbranch
+ -- Merging can cause new associated files
+ -- to appear and the smudge filter will
+ -- add them to the database. To ensure that
+ -- this process sees those changes, close
+ -- the database if it was open.
+ liftAnnex $ Database.Keys.closeDb
mergecurrent _ = noop
handleDesynced = case fromTaggedBranch changedbranch of