mirror of
https://github.com/dorny/paths-filter.git
synced 2025-06-06 19:30:41 +02: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).