Skip to content

Commit

Permalink
Fix branches with slashes in their names not being listed (#24809)
Browse files Browse the repository at this point in the history
`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
  • Loading branch information
cole-miller authored Feb 13, 2025
1 parent de0d9d6 commit 8c780ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/git/src/repository.rs
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ impl GitRepository for RealGitRepository {
"%(contents:subject)",
]
.join("%00");
let args = vec!["for-each-ref", "refs/heads/*", "--format", &fields];
let args = vec!["for-each-ref", "refs/heads/**/*", "--format", &fields];

let output = new_std_command(&self.git_binary_path)
.current_dir(&working_directory)
Expand Down

0 comments on commit 8c780ba

Please sign in to comment.