We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f066f98 commit fd034e0Copy full SHA for fd034e0
gix-index/src/entry/stat.rs
@@ -95,8 +95,8 @@ impl Stat {
95
use std::os::unix::fs::MetadataExt;
96
#[cfg(unix)]
97
let res = Stat {
98
- mtime: mtime.try_into()?,
99
- ctime: ctime.try_into()?,
+ mtime: mtime.try_into().unwrap_or_default(),
+ ctime: ctime.try_into().unwrap_or_default(),
100
// truncating to 32 bits is fine here because
101
// that's what the linux syscalls returns
102
// just rust upcasts to 64 bits for some reason?
0 commit comments