diff options
-rw-r--r-- | Remote/Git.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Remote/Git.hs b/Remote/Git.hs index 0d8e2425a..5b9d5d3df 100644 --- a/Remote/Git.hs +++ b/Remote/Git.hs @@ -169,8 +169,8 @@ rsyncHelper p = do - filesystem. Then cp could be faster. -} rsyncOrCopyFile :: Git.Repo -> FilePath -> FilePath -> Annex Bool rsyncOrCopyFile r src dest = do - ss <- liftIO $ getFileStatus src - ds <- liftIO $ getFileStatus dest + ss <- liftIO $ getFileStatus $ parentDir src + ds <- liftIO $ getFileStatus $ parentDir dest if deviceID ss == deviceID ds then liftIO $ copyFile src dest else do |