mirror of
https://github.com/gitui-org/gitui
synced 2026-05-23 08:58:21 +00:00
preserve ref name in annotated commit
This commit is contained in:
parent
b5327a65c1
commit
a073e0ac02
1 changed files with 2 additions and 3 deletions
|
|
@ -45,9 +45,8 @@ pub fn merge_branch(repo_path: &str, branch: &str) -> Result<()> {
|
|||
|
||||
let branch = repo.find_branch(branch, BranchType::Local)?;
|
||||
|
||||
let id = branch.into_reference().peel_to_commit()?;
|
||||
|
||||
let annotated = repo.find_annotated_commit(id.id())?;
|
||||
let annotated =
|
||||
repo.reference_to_annotated_commit(&branch.into_reference())?;
|
||||
|
||||
let (analysis, _) = repo.merge_analysis(&[&annotated])?;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue