summaryrefslogtreecommitdiff
path: root/Annex/Content
diff options
context:
space:
mode:
Diffstat (limited to 'Annex/Content')
-rw-r--r--Annex/Content/Direct.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Annex/Content/Direct.hs b/Annex/Content/Direct.hs
index 49d317258..91073f687 100644
--- a/Annex/Content/Direct.hs
+++ b/Annex/Content/Direct.hs
@@ -190,9 +190,10 @@ compareInodeCachesWith = ifM inodesChanged ( return Weakly, return Strongly )
addContentWhenNotPresent :: Key -> FilePath -> FilePath -> Annex ()
addContentWhenNotPresent key contentfile associatedfile = do
v <- isAnnexLink associatedfile
- when (Just key == v) $
+ when (Just key == v) $ do
replaceFile associatedfile $
liftIO . void . copyFileExternal contentfile
+ updateInodeCache key associatedfile
{- Some filesystems get new inodes each time they are mounted.
- In order to work on such a filesystem, a sentinal file is used to detect