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). |
||
|---|---|---|
| .. | ||
| list-format | ||
| exec.ts | ||
| file.ts | ||
| filter.ts | ||
| git.ts | ||
| main.ts | ||