summaryrefslogtreecommitdiff
path: root/Test.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2016-07-12 14:18:35 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2016-07-12 14:18:35 -0400
commit8a7b972e55fa6eaa4c754303b3ee8fd214a51468 (patch)
treecb41dbe7b3bb265a22b6d61631e5e27ab3e187fa /Test.hs
parent50c57ea1c0ec659e565578e9011e3111e6b11898 (diff)
uninit: Fix crash due to trying to write to deleted keys db.
Reversion introduced by v6 mode support, affects v5 too. Also fix a similar crash when the webapp is used to delete a repository.
Diffstat (limited to 'Test.hs')
-rw-r--r--Test.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Test.hs b/Test.hs
index f92d825d0..35d9ddace 100644
--- a/Test.hs
+++ b/Test.hs
@@ -1837,7 +1837,7 @@ cleanup = cleanup' False
cleanup' :: Bool -> FilePath -> IO ()
cleanup' final dir = whenM (doesDirectoryExist dir) $ do
- Command.Uninit.prepareRemoveAnnexDir dir
+ Command.Uninit.prepareRemoveAnnexDir' dir
-- This sometimes fails on Windows, due to some files
-- being still opened by a subprocess.
catchIO (removeDirectoryRecursive dir) $ \e ->