mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-09-11 12:25:42 +03:00
use the correct oxide api for getting the branch given name
This commit is contained in:
parent
a0c724077a
commit
e5729fe56d
@ -226,7 +226,7 @@ impl GroupBranch<'_> {
|
||||
/// they are grouped together under the same `Branch` entry.
|
||||
fn identity(&self) -> Option<BString> {
|
||||
match self {
|
||||
GroupBranch::Git(branch) => Some(branch.name().shorten().into()),
|
||||
GroupBranch::Git(branch) => Some(branch.name().file_name().into()),
|
||||
// When a user changes the remote name via the "set remote branch name" in the UI,
|
||||
// the virtual branch will be in a different group. This is probably the desired behavior.
|
||||
GroupBranch::Virtual(branch) => branch.upstream.clone().map(|x| x.branch().into()),
|
||||
|
Loading…
Reference in New Issue
Block a user