summaryrefslogtreecommitdiff
path: root/Command
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2017-09-04 14:00:54 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2017-09-04 14:00:54 -0400
commit1e06157ead17eb9cb2b59f7bf84cb4da6f10e8bb (patch)
treea490f0dfda35273fa615a5df2aa1a249c88a0ff1 /Command
parent5083bca3809b27b6f9faddbefcbdc93b3ccd8226 (diff)
flush queued changes to export db on exit
Diffstat (limited to 'Command')
-rw-r--r--Command/Export.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/Command/Export.hs b/Command/Export.hs
index 38bda459c..c09253dc9 100644
--- a/Command/Export.hs
+++ b/Command/Export.hs
@@ -108,6 +108,8 @@ seek o = do
seekActions $ pure $ map (startExport r db) l
void $ liftIO cleanup'
+ closeDb db
+
startExport :: Remote -> ExportHandle -> Git.LsTree.TreeItem -> CommandStart
startExport r db ti = do
ek <- exportKey (Git.LsTree.sha ti)