Fix branches with slashes in their names not being listed (#24809)

`refs/heads/*` doesn't match e.g. `refs/heads/cole/branch-with-slash`
(thanks fnmatch), but `refs/heads/**/*` does. This also works for
several levels of slash.

Release Notes:

- N/A
8c780ba287Cole Miller committed on 2/13/2025, 3:32:23 PM· committed by GitHubparentde0d9d6
1 file changedLine totals unavailable