git: Don't filter local upstreams from branch picker (#30557)
Release Notes: - Fixed local git branches being excluded from the branch selector when they were set as the upstream of another local branch.
This commit is contained in:
@@ -78,6 +78,10 @@ pub struct Upstream {
|
||||
}
|
||||
|
||||
impl Upstream {
|
||||
pub fn is_remote(&self) -> bool {
|
||||
self.remote_name().is_some()
|
||||
}
|
||||
|
||||
pub fn remote_name(&self) -> Option<&str> {
|
||||
self.ref_name
|
||||
.strip_prefix("refs/remotes/")
|
||||
|
||||
Reference in New Issue
Block a user