Merge pull request #1873 from gitbutlerapp/filter-out-default-target-branch

Filter out default target branch
This commit is contained in:
Kiril Videlov 2023-11-30 18:16:20 +01:00 committed by GitHub
commit 41c4139555
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,6 +66,7 @@ pub fn list_remote_branches(
.context("failed to convert branches")?
.into_iter()
.flatten()
.filter(|branch| branch.name.branch() != Some(default_target.branch.branch()))
.collect::<Vec<_>>();
Ok(remote_branches)