aboutsummaryrefslogtreecommitdiff
path: root/Annex/Content.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-01-14 11:56:37 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-01-14 11:56:37 -0400
commitb4af18f29de3848b736a24cde2dce34715b970f6 (patch)
tree70ad65df737d2e21c374ef9ae7b07c5807e75015 /Annex/Content.hs
parent5db2552997f3ada4d8ec3bfe4c9eddc75c23740a (diff)
In direct mode, files with the same key are no longer hardlinked, as that would cause a surprising behavior if modifying one, where the other would also change.
Diffstat (limited to 'Annex/Content.hs')
-rw-r--r--Annex/Content.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Annex/Content.hs b/Annex/Content.hs
index 7fa6541f7..f58628097 100644
--- a/Annex/Content.hs
+++ b/Annex/Content.hs
@@ -254,7 +254,8 @@ moveAnnex key src = withObjectLoc key storeobject storedirect
updateCache key src
thawContent src
liftIO $ replaceFile dest $ moveFile src
- liftIO $ forM_ fs $ \f -> replaceFile f $ createLink dest
+ liftIO $ forM_ fs $ \f -> replaceFile f $
+ void . copyFileExternal dest
{- Replaces any existing file with a new version, by running an action.
- First, makes sure the file is deleted. Or, if it didn't already exist,