mirror of
https://gitea.com/actions/dorny-paths-filter.git
synced 2025-12-24 10:52:17 +08:00
git show-ref will return all branches where end segment matches the input. This cause issues when there are both 'someBranch' and 'somePrefix/someBranch' branches. This fix ensures the correct ref is returned by explicitly matching segments after common parts (e.g. refs/heads).