fix reversion on repo deletion
A broken symlink would cause the mode setting to fail.
This commit is contained in:
parent
ec417b108d
commit
c91bbc9494
2 changed files with 3 additions and 2 deletions
2
Test.hs
2
Test.hs
|
@ -1178,7 +1178,7 @@ cleanup' final dir = whenM (doesDirectoryExist dir) $ do
|
|||
-- they can be deleted. Both git and git-annex use file
|
||||
-- permissions to prevent deletion.
|
||||
recurseDir SystemFS dir >>=
|
||||
mapM_ Utility.FileMode.allowWrite
|
||||
mapM_ (void . tryIO . Utility.FileMode.allowWrite)
|
||||
-- This sometimes fails on Windows, due to some files
|
||||
-- being still opened by a subprocess.
|
||||
catchIO (removeDirectoryRecursive dir) $ \e -> do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue