mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-01 12:26:02 +03:00
fix a small thing
This commit is contained in:
parent
0e7c430d65
commit
909894149f
@ -190,10 +190,7 @@ pub fn branch_to_remote_branch_data(
|
||||
pub fn commit_to_remote_commit(commit: &git2::Commit) -> RemoteCommit {
|
||||
let parent_ids: Vec<git::Oid> = commit
|
||||
.parents()
|
||||
.map(|c| {
|
||||
let c: git::Oid = c.id().into();
|
||||
c
|
||||
})
|
||||
.map(|c| git::Oid::from(c.id()))
|
||||
.collect::<Vec<_>>();
|
||||
RemoteCommit {
|
||||
id: commit.id().to_string(),
|
||||
|
Loading…
Reference in New Issue
Block a user