diff options
author | Joey Hess <joeyh@joeyh.name> | 2015-12-09 14:55:47 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2015-12-09 14:55:47 -0400 |
commit | 819e710ac27f0e50a83eb5f2036b5c4a041c882c (patch) | |
tree | c9282a3d3095ca295cefcffa43d2f822e33fe030 /Command/Smudge.hs | |
parent | 26a0189fcb54290b1bad3afadef93804bb818987 (diff) |
stash DbHandle in Annex state
Diffstat (limited to 'Command/Smudge.hs')
-rw-r--r-- | Command/Smudge.hs | 6 |
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 |