Skip to content

Commit

Permalink
Update gix to 0.56
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake-Shadle committed Dec 12, 2023
1 parent b1af2b8 commit 60fd14e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ twox-hash = { version = "1.6", default-features = false }

[dependencies.gix]
optional = true
version = "0.55"
version = "0.56"
default-features = false
features = ["blocking-http-transport-reqwest"]

Expand Down
2 changes: 1 addition & 1 deletion src/index/git_remote.rs
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ pub enum GitError {
#[error(transparent)]
ReferenceLookup(#[from] Box<gix::reference::find::existing::Error>),
#[error(transparent)]
BlobLookup(#[from] Box<gix::odb::find::existing::Error>),
BlobLookup(#[from] Box<gix::object::find::existing::Error>),
#[error(transparent)]
RemoteLookup(#[from] Box<gix::remote::find::existing::Error>),
#[error(transparent)]
Expand Down
8 changes: 4 additions & 4 deletions tests/git.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ impl TreeUpdateBuilder {
repo: &gix::Repository,
) -> gix::ObjectId {
use gix::objs::{
tree::{Entry, EntryMode},
tree::{Entry, EntryKind},
Tree,
};

Expand All @@ -94,15 +94,15 @@ impl TreeUpdateBuilder {
match entry {
UpdateEntry::Blob(oid) => {
nt.entries.push(Entry {
mode: EntryMode::Blob,
mode: EntryKind::Blob.into(),
oid,
filename,
});
}
UpdateEntry::Tree(ut) => {
// Check if there is already an existing tree
let current_tree = tree_ref.entries.iter().find_map(|tre| {
if tre.filename == name && tre.mode == EntryMode::Tree {
if tre.filename == name && tre.mode.is_tree() {
Some(repo.find_object(tre.oid).unwrap().into_tree())
} else {
None
Expand All @@ -112,7 +112,7 @@ impl TreeUpdateBuilder {

let oid = Self::create_inner(ut, &current_tree, repo);
nt.entries.push(Entry {
mode: EntryMode::Tree,
mode: EntryKind::Tree.into(),
oid,
filename,
});
Expand Down

0 comments on commit 60fd14e

Please sign in to comment.