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
This commit is contained in:
parent
de0d9d678e
commit
8c780ba287
1 changed files with 1 additions and 1 deletions
|
@ -371,7 +371,7 @@ impl GitRepository for RealGitRepository {
|
||||||
"%(contents:subject)",
|
"%(contents:subject)",
|
||||||
]
|
]
|
||||||
.join("%00");
|
.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)
|
let output = new_std_command(&self.git_binary_path)
|
||||||
.current_dir(&working_directory)
|
.current_dir(&working_directory)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue