diff --git a/Cargo.lock b/Cargo.lock index 9be1c8c5f..5276dca7f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4301,6 +4301,7 @@ dependencies = [ "anyhow", "base64 0.22.1", "either", + "git2", "infer", "log", "radicle", diff --git a/crates/radicle-tauri/Cargo.toml b/crates/radicle-tauri/Cargo.toml index e7e25adb4..2040ebf64 100644 --- a/crates/radicle-tauri/Cargo.toml +++ b/crates/radicle-tauri/Cargo.toml @@ -18,6 +18,7 @@ tauri-build = { version = "2.2.0", features = ["isolation"] } anyhow = { version = "1.0.90" } base64 = { version = "0.22.1" } either = { version = "1.15" } +git2 = { version = "0.20.4", default-features = false, features = ["vendored-libgit2"] } infer = { version = "0.19.0" } log = { version = "0.4.22" } radicle = { version = "0.22" } diff --git a/crates/radicle-tauri/src/commands/repo.rs b/crates/radicle-tauri/src/commands/repo.rs index f3bf5502c..fd2853258 100644 --- a/crates/radicle-tauri/src/commands/repo.rs +++ b/crates/radicle-tauri/src/commands/repo.rs @@ -98,7 +98,7 @@ pub(crate) async fn create_repo( let profile = &ctx.profile; let storage = &profile.storage; let signer = ctx.profile.signer()?; - let config = radicle::git::raw::Config::open_default()?; + let config = git2::Config::open_default()?; // SAFETY: "master" is always a valid RefString let default_branch = git::RefString::try_from( config