From 9e6fa4294f99bbe3137e7d5ef5af11d3d52ed34a Mon Sep 17 00:00:00 2001 From: daimond113 <72147841+daimond113@users.noreply.github.com> Date: Fri, 17 Jan 2025 20:37:38 +0100 Subject: [PATCH] fix: asyncify exists check --- src/source/git_index.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,