fix: update type of current_sha field in Branch struct to git::Oid to match the actual type of the value

This commit is contained in:
Nikita Galaiko 2024-01-26 14:37:48 +01:00 committed by GitButler
parent 91cd79687e
commit 284448e594

View File

@ -27,7 +27,7 @@ pub struct BaseBranch {
pub remote_name: String,
pub remote_url: String,
pub base_sha: git::Oid,
pub current_sha: String,
pub current_sha: git::Oid,
pub behind: usize,
pub upstream_commits: Vec<RemoteCommit>,
pub recent_commits: Vec<RemoteCommit>,
@ -549,7 +549,7 @@ pub fn target_to_base_branch(
remote_name: target.branch.remote().to_string(),
remote_url: target.remote_url.clone(),
base_sha: target.sha,
current_sha: oid.to_string(),
current_sha: oid,
behind: upstream_commits.len(),
upstream_commits,
recent_commits,