From 8c780ba2872c293d02fea18379b46acc8b423cef Mon Sep 17 00:00:00 2001 From: Cole Miller Date: Thu, 13 Feb 2025 10:32:23 -0500 Subject: [PATCH] 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 --- crates/git/src/repository.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/git/src/repository.rs b/crates/git/src/repository.rs index ffc7450858a2a42e6f49419aaad8edcccea54571..9fa8db69cbcbbba3e4506be98ce30c392ac535e0 100644 --- a/crates/git/src/repository.rs +++ b/crates/git/src/repository.rs @@ -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)