remote: make match_refs() not short-circuit