| 1 |
Description: use newer minor version of crate git2 |
| 2 |
Author: Simon Quigley <[email protected]> |
| 3 |
Bug-Debian: https://bugs.debian.org/1143955 |
| 4 |
Last-Update: 2026-08-13 |
| 5 |
--- |
| 6 |
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ |
| 7 |
--- a/Cargo.toml |
| 8 |
+++ b/Cargo.toml |
| 9 |
@@ -39,7 +39,7 @@ |
| 10 |
console = "0.15.0" |
| 11 |
ctrlc = "3.2.5" |
| 12 |
dirs = "6.0.0" |
| 13 |
|
| 14 |
+git2 = { version = "0.21.0", default-features = false, features = [] } |
| 15 |
grep-cli = "0.1.8" |
| 16 |
itertools = "0.10.5" |
| 17 |
lazy_static = "1.4" |
| 18 |
--- a/src/git_config/mod.rs |
| 19 |
+++ b/src/git_config/mod.rs |
| 20 |
@@ -138,6 +138,7 @@ |
| 21 |
.find_remote("origin") |
| 22 |
.ok()? |
| 23 |
.url() |
| 24 |
+ .ok() |
| 25 |
.and_then(|url| GitRemoteRepo::from_str(url).ok()) |
| 26 |
} |
| 27 |
|
| 28 |
@@ -153,7 +154,7 @@ |
| 29 |
while let Some(entry) = entries.next() { |
| 30 |
let entry = entry.unwrap(); |
| 31 |
let name = entry.name().unwrap(); |
| 32 |
|
| 33 |
+ f(name, entry.value().ok()); |
| 34 |
} |
| 35 |
} |
| 36 |
} |