summaryrefslogtreecommitdiff
path: root/Utility/Tmp.hs
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2013-11-20 13:42:25 -0400
committerJoey Hess <joey@kitenet.net>2013-11-20 13:42:25 -0400
commit655fa61307f580c400072be12f9e5f3be3cef4a8 (patch)
treec8b0f6cc89a92897935558017b48b877503263ba /Utility/Tmp.hs
parent24c0b0039d37089169ee12ae996505c1e52fbd62 (diff)
downloadgit-repair-655fa61307f580c400072be12f9e5f3be3cef4a8.tar.gz
merge from git-annex
Diffstat (limited to 'Utility/Tmp.hs')
-rw-r--r--Utility/Tmp.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Utility/Tmp.hs b/Utility/Tmp.hs
index 186cd12..3770654 100644
--- a/Utility/Tmp.hs
+++ b/Utility/Tmp.hs
@@ -62,7 +62,7 @@ withTmpDirIn :: FilePath -> Template -> (FilePath -> IO a) -> IO a
withTmpDirIn tmpdir template = bracket create remove
where
remove d = whenM (doesDirectoryExist d) $
- removeDirectoryRecursive d
+ return () -- removeDirectoryRecursive d
create = do
createDirectoryIfMissing True tmpdir
makenewdir (tmpdir </> template) (0 :: Int)