Description: use newer minor version of crate git2 Author: Simon Quigley Bug-Debian: https://bugs.debian.org/1143955 Last-Update: 2026-08-13 --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- a/Cargo.toml +++ b/Cargo.toml @@ -39,7 +39,7 @@ console = "0.15.0" ctrlc = "3.2.5" dirs = "6.0.0" -git2 = { version = "0.20.0", default-features = false, features = [] } +git2 = { version = "0.21.0", default-features = false, features = [] } grep-cli = "0.1.8" itertools = "0.10.5" lazy_static = "1.4" --- a/src/git_config/mod.rs +++ b/src/git_config/mod.rs @@ -138,6 +138,7 @@ .find_remote("origin") .ok()? .url() + .ok() .and_then(|url| GitRemoteRepo::from_str(url).ok()) } @@ -153,7 +154,7 @@ while let Some(entry) = entries.next() { let entry = entry.unwrap(); let name = entry.name().unwrap(); - f(name, entry.value()); + f(name, entry.value().ok()); } } }