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.
This commit is contained in:
parent
59170c4187
commit
e7780a39f5
6 changed files with 37 additions and 29 deletions
2
Seek.hs
2
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue