diff --git a/src/source/git_index.rs b/src/source/git_index.rs index 36291eb..861367f 100644 --- a/src/source/git_index.rs +++ b/src/source/git_index.rs @@ -24,7 +24,7 @@ pub trait GitBasedSource { let project = project.clone(); - if path.exists() { + if fs::metadata(&path).await.is_ok() { spawn_blocking(move || { let repo = match gix::open(&path) { Ok(repo) => repo,