whereused: Fix bug that could find matches from grafts in remote git-annex branches

git log with --remotes= needs the preceeding --exclude=*/git-annex in order
to not look at git-annex branches of remotes.

Sponsored-by: mycroft
This commit is contained in:
Joey Hess 2025-05-05 14:31:47 -04:00
parent 2bafd907b2
commit e64e9d5fae
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
3 changed files with 30 additions and 1 deletions

View file

@ -89,7 +89,7 @@ findHistorical key = do
[ Param ("--exclude=*/" ++ fromRef (Annex.Branch.name))
, Param "--glob=*"
-- Also search remote branches
, Param ("--exclude=" ++ fromRef (Annex.Branch.name))
, Param ("--exclude=*/" ++ fromRef (Annex.Branch.name))
, Param "--remotes=*"
-- And search tags.
, Param "--tags=*"