Skip to content

Commit 86777b3

Browse files
committed
Wire up backend selection in ProtofetchBuilder
Update ProtofetchBuilder to pass backend configuration to cache, completing the integration of the backend abstraction system.
1 parent 0eb460c commit 86777b3

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

src/api/builder.rs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
use std::{env, error::Error, path::PathBuf, sync::Arc};
22

3-
use crate::{
4-
config::ProtofetchConfig,
5-
fetch::ParallelConfig,
6-
git::{backend::GitBackendType, cache::ProtofetchGitCache},
7-
Protofetch,
8-
};
3+
use crate::{config::ProtofetchConfig,
4+
fetch::ParallelConfig, git::cache::ProtofetchGitCache, Protofetch};
95

106
#[derive(Default)]
117
pub struct ProtofetchBuilder {
@@ -99,7 +95,8 @@ impl ProtofetchBuilder {
9995
let cache = ProtofetchGitCache::new(
10096
cache_directory,
10197
config.default_protocol,
102-
GitBackendType::default(),
98+
config.git_backend,
99+
config.git_executable,
103100
)?;
104101

105102
// Build the effective ParallelConfig: defaults < config < explicit builder calls.

0 commit comments

Comments
 (0)