mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-28 17:50:28 +08:00
radicle-tauri: Depend on git2
The `radicle` crate does not re-export `Config` anymore, thus depend on `git2` directly.
This commit is contained in:
Generated
+1
@@ -4301,6 +4301,7 @@ dependencies = [
|
||||
"anyhow",
|
||||
"base64 0.22.1",
|
||||
"either",
|
||||
"git2",
|
||||
"infer",
|
||||
"log",
|
||||
"radicle",
|
||||
|
||||
@@ -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" }
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user