diff --git a/crates/tabby-scheduler/src/repository.rs b/crates/tabby-scheduler/src/repository.rs index a1040c6f52ef..2d6229928c23 100644 --- a/crates/tabby-scheduler/src/repository.rs +++ b/crates/tabby-scheduler/src/repository.rs @@ -40,6 +40,9 @@ impl RepositoryExt for RepositoryConfig { } pub fn sync_repositories(repositories: &[RepositoryConfig]) -> Result<()> { + // Ensure repositories_dir exist. + std::fs::create_dir_all(repositories_dir())?; + let mut names = HashSet::new(); for repository in repositories { names.insert(repository.name());