summaryrefslogtreecommitdiff
path: root/Seek.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-10-17 16:01:09 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-10-17 16:01:09 -0400
commit998f57820295857891d123ca1592c9c2e54e94c1 (patch)
treebaf0a9f39457dc6c51d7c0408e126da74397204a /Seek.hs
parent2c7c9811b3253e293535680762709adacecc0f2a (diff)
Preferred content path matching bugfix.
When in a subdir, both the normal filepath, and the filepath relative to the top of the git repo are needed for matching. The former for key lookup, and the latter for include/exclude to match against. Previously, key lookup didn't work in this situation.
Diffstat (limited to 'Seek.hs')
-rw-r--r--Seek.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Seek.hs b/Seek.hs
index aeaf26bb7..1f18861bc 100644
--- a/Seek.hs
+++ b/Seek.hs
@@ -113,7 +113,7 @@ prepFiltered a fs = do
map (process matcher) <$> fs
where
process matcher f = do
- ok <- matcher f
+ ok <- matcher $ Annex.FileInfo f f
if ok then a f else return Nothing
notSymlink :: FilePath -> IO Bool