mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-08-16 07:40:35 +03:00
handle missing ctime [2]
This commit is contained in:
parent
5dc7a51b98
commit
290d80ca1a
@ -734,7 +734,7 @@ fn add_log_path(
|
||||
|
||||
let metadata = file_path.metadata()?;
|
||||
let mtime = FileTime::from_last_modification_time(&metadata);
|
||||
let ctime = FileTime::from_creation_time(&metadata).unwrap();
|
||||
let ctime = FileTime::from_creation_time(&metadata).unwrap_or(mtime);
|
||||
|
||||
index.add(&git2::IndexEntry {
|
||||
ctime: git2::IndexTime::new(
|
||||
|
Loading…
Reference in New Issue
Block a user