aboutsummaryrefslogtreecommitdiff
path: root/Command/Smudge.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2015-12-09 14:55:47 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2015-12-09 14:55:47 -0400
commit819e710ac27f0e50a83eb5f2036b5c4a041c882c (patch)
treec9282a3d3095ca295cefcffa43d2f822e33fe030 /Command/Smudge.hs
parent26a0189fcb54290b1bad3afadef93804bb818987 (diff)
stash DbHandle in Annex state
Diffstat (limited to 'Command/Smudge.hs')
-rw-r--r--Command/Smudge.hs6
1 files changed, 2 insertions, 4 deletions
diff --git a/Command/Smudge.hs b/Command/Smudge.hs
index f9f819bec..746296321 100644
--- a/Command/Smudge.hs
+++ b/Command/Smudge.hs
@@ -102,7 +102,5 @@ emitPointer = putStrLn . formatPointer
updateAssociatedFiles :: Key -> FilePath -> Annex ()
updateAssociatedFiles k f = do
- h <- AssociatedFiles.openDb
- liftIO $ do
- AssociatedFiles.addDb h k f
- AssociatedFiles.closeDb h
+ AssociatedFiles.addDb k f
+ AssociatedFiles.flushDb