Skip to content

Commit cf63d87

Browse files
committed
remove git-config dependency
1 parent cbc9ba9 commit cf63d87

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

Cargo.lock

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gitoxide-core/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ git-repository = { version = "^0.24.0", path = "../git-repository", default-feat
4040
git-pack-for-configuration-only = { package = "git-pack", version = "^0.22.0", path = "../git-pack", default-features = false, features = ["pack-cache-lru-dynamic", "pack-cache-lru-static"] }
4141
git-transport-configuration-only = { package = "git-transport", version = "^0.20.0", path = "../git-transport", default-features = false }
4242
git-commitgraph = { version = "^0.8.2", path = "../git-commitgraph" }
43-
git-config = { version = "^0.7.1", path = "../git-config" }
4443
git-features = { version = "^0.22.4", path = "../git-features" }
4544
serde = { version = "1.0.114", optional = true, default-features = false, features = ["derive"] }
4645
anyhow = "1.0.42"

gitoxide-core/src/organize.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ use std::{
44
};
55

66
use git::{objs::bstr::ByteSlice, progress, Progress};
7-
use git_config::File;
87
use git_repository as git;
98

109
#[derive(Copy, Clone, Eq, PartialEq)]
@@ -101,9 +100,9 @@ where
101100

102101
fn find_origin_remote(repo: &Path) -> anyhow::Result<Option<git_url::Url>> {
103102
let non_bare = repo.join(".git").join("config");
104-
let local = git_config::Source::Local;
105-
let config = File::from_path_no_includes(non_bare.as_path(), local)
106-
.or_else(|_| File::from_path_no_includes(repo.join("config").as_path(), local))?;
103+
let local = git::config::Source::Local;
104+
let config = git::config::File::from_path_no_includes(non_bare.as_path(), local)
105+
.or_else(|_| git::config::File::from_path_no_includes(repo.join("config").as_path(), local))?;
107106
Ok(config
108107
.string("remote", Some("origin"), "url")
109108
.map(|url| git_url::Url::from_bytes(url.as_ref()))

0 commit comments

Comments
 (0)