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.

This commit is contained in:
Joey Hess 2013-01-14 11:56:37 -04:00
parent 36cb19b4e6
commit 85c564ea94
4 changed files with 20 additions and 6 deletions

View file

@ -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,