From 94cb037aa3ad8aceb740b8c15ed4652a3ed2673b Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Fri, 17 May 2013 16:16:10 -0400 Subject: [PATCH] store copy in inode cache too --- Annex/Content/Direct.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Annex/Content/Direct.hs b/Annex/Content/Direct.hs index 49d317258b..91073f687b 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