diff options
author | Joey Hess <joey@kitenet.net> | 2011-06-13 21:46:28 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2011-06-13 21:46:28 -0400 |
commit | d0482d4154e90e7e5c3d70113a760eb76e5d4e83 (patch) | |
tree | 6f721f2fcfb7629bb3f5e0acba5bcf14e64efeeb /Remote | |
parent | c1acad824881d4b2aacd01f3d30ee35779a64726 (diff) |
bigfix: stat parent dirs
Diffstat (limited to 'Remote')
-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 |