git2 0.20.4 carries two informational=unsound advisories that surface in downstream cargo-audit/cargo-deny runs. fff does not call the affected APIs (Remote::list, Blame::blame_buffer), but bumping clears the noise for consumers. 0.21.0 changes StatusEntry::path() to return Result<&str, git2::Error> instead of Option<&str>; adjust the two callers in fff-core. Closes #733 Co-authored-by: gustav-fff <286169375+gustav-fff@users.noreply.github.com>
This commit is contained in:
Generated
+4
-5
@@ -925,15 +925,14 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "git2"
|
||||
version = "0.20.4"
|
||||
version = "0.21.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "7b88256088d75a56f8ecfa070513a775dd9107f6530ef14919dac831af9cfe2b"
|
||||
checksum = "ddddbf932745a6be37109b6112d3ee09696106f848449069d3a57bba937ab82e"
|
||||
dependencies = [
|
||||
"bitflags 2.11.0",
|
||||
"libc",
|
||||
"libgit2-sys",
|
||||
"log",
|
||||
"url",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -1333,9 +1332,9 @@ checksum = "b5b646652bf6661599e1da8901b3b9522896f01e736bad5f723fe7a3a27f899d"
|
||||
|
||||
[[package]]
|
||||
name = "libgit2-sys"
|
||||
version = "0.18.3+1.9.2"
|
||||
version = "0.18.7+1.9.6"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "c9b3acc4b91781bb0b3386669d325163746af5f6e4f73e6d2d630e09a35f3487"
|
||||
checksum = "23c7391e4b9f4ffab1a624223cc1d7385ff9a678f490768add717de7ea2f4d89"
|
||||
dependencies = [
|
||||
"cc",
|
||||
"libc",
|
||||
|
||||
+1
-1
@@ -26,7 +26,7 @@ ctrlc = "3.4.2"
|
||||
dirs = "5.0"
|
||||
dunce = "1.0"
|
||||
# git2 - base config without TLS (each crate adds platform-specific TLS)
|
||||
git2 = { version = "0.20.2", default-features = false, features = [
|
||||
git2 = { version = "0.21.0", default-features = false, features = [
|
||||
"vendored-libgit2",
|
||||
] }
|
||||
glidesort = "0.1"
|
||||
|
||||
@@ -62,7 +62,7 @@ impl GitStatusCache {
|
||||
|
||||
let mut entries = AHashMap::with_capacity(statuses.len());
|
||||
for entry in &statuses {
|
||||
if let Some(entry_path) = entry.path() {
|
||||
if let Ok(entry_path) = entry.path() {
|
||||
// libgit2 returns entry paths with forward slashes on every platform
|
||||
// fff stores native paths - meaning we have forward slash issue on windows
|
||||
let full_path = crate::path_utils::normalize(repo_path.join(entry_path));
|
||||
|
||||
@@ -773,7 +773,7 @@ fn read_truth_status(base: &Path) -> BTreeMap<String, Status> {
|
||||
|
||||
let mut out = BTreeMap::new();
|
||||
for entry in statuses.iter() {
|
||||
if let Some(p) = entry.path() {
|
||||
if let Ok(p) = entry.path() {
|
||||
// git2 returns forward-slash paths; accept as-is.
|
||||
out.insert(p.to_string(), entry.status());
|
||||
}
|
||||
@@ -1258,7 +1258,7 @@ fn get_baseline_status_from_git(base: &Path) -> Vec<Live> {
|
||||
Err(_) => return out,
|
||||
};
|
||||
for entry in statuses.iter() {
|
||||
if let Some(p) = entry.path() {
|
||||
if let Ok(p) = entry.path() {
|
||||
let abs = base.join(p);
|
||||
// Must be a real file *right now* — ignore stale WT_DELETED rows.
|
||||
if abs.is_file() {
|
||||
|
||||
Reference in New Issue
Block a user