summaryrefslogtreecommitdiff
path: root/Core.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2010-11-10 14:11:19 -0400
committerGravatar Joey Hess <joey@kitenet.net>2010-11-10 14:11:19 -0400
commitf5f472e8550ae438b1dc751a18cccf0efbaccd1d (patch)
tree426ccf3aa6191898d27b3f62933170a698ba89c6 /Core.hs
parent05ca2bebff521b1fa9b79014b1856b828d897b6d (diff)
parent16ba23d48de00daccbfb481dd1baca91047f8b3e (diff)
Merge branch 'checkout'
Diffstat (limited to 'Core.hs')
-rw-r--r--Core.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/Core.hs b/Core.hs
index 304c8a923..f9c9417bd 100644
--- a/Core.hs
+++ b/Core.hs
@@ -173,6 +173,7 @@ moveAnnex key src = do
let dir = parentDir dest
liftIO $ do
createDirectoryIfMissing True dir
+ allowWrite dir -- in case the directory already exists
renameFile src dest
preventWrite dest
preventWrite dir