mirror of
https://github.com/pesde-pkg/pesde.git
synced 2025-04-06 03:40:59 +01:00
fix: asyncify exists check
This commit is contained in:
parent
3d659161e6
commit
9e6fa4294f
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue