mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-11-23 11:45:06 +03:00
Merge pull request #5386 from gitbutlerapp/kv-branch-1
Fixes a bug where incorrect remote commits are shown when remote was rebased
This commit is contained in:
commit
3a383e19bd
@ -574,7 +574,10 @@ impl Stack {
|
||||
let head_commit = repo
|
||||
.find_reference(&head.remote_reference(&remote_name)?)?
|
||||
.peel_to_commit()?;
|
||||
let merge_base = repo.merge_base(head_commit.id(), default_target.sha)?;
|
||||
let target_commit = repo
|
||||
.find_reference(default_target.branch.to_string().as_str())?
|
||||
.peel_to_commit()?;
|
||||
let merge_base = repo.merge_base(head_commit.id(), target_commit.id())?;
|
||||
repo.log(head_commit.id(), LogUntil::Commit(merge_base), false)?
|
||||
.into_iter()
|
||||
.rev()
|
||||
|
Loading…
Reference in New Issue
Block a user