diff options
Diffstat (limited to 'crates/shirabe/src/repository/vcs')
| -rw-r--r-- | crates/shirabe/src/repository/vcs/git_bitbucket_driver.rs | 15 | ||||
| -rw-r--r-- | crates/shirabe/src/repository/vcs/vcs_driver.rs | 2 |
2 files changed, 7 insertions, 10 deletions
diff --git a/crates/shirabe/src/repository/vcs/git_bitbucket_driver.rs b/crates/shirabe/src/repository/vcs/git_bitbucket_driver.rs index 59e6b88..b33aa05 100644 --- a/crates/shirabe/src/repository/vcs/git_bitbucket_driver.rs +++ b/crates/shirabe/src/repository/vcs/git_bitbucket_driver.rs @@ -790,14 +790,13 @@ impl GitBitbucketDriver { fn setup_fallback_driver(&mut self, url: &str) -> Result<()> { let mut repo_config: IndexMap<String, PhpMixed> = IndexMap::new(); repo_config.insert("url".to_string(), PhpMixed::String(url.to_string())); - // TODO(phase-b): construct VcsDriver from repo_config / io / config / etc. - let mut driver = GitDriver { - inner: todo!("phase-b: build VcsDriver for fallback GitDriver"), - tags: None, - branches: None, - root_identifier: None, - repo_dir: String::new(), - }; + let mut driver = GitDriver::new( + repo_config, + self.inner.io.clone(), + self.inner.config.clone(), + self.inner.http_downloader.clone(), + self.inner.process.clone(), + ); driver.initialize()?; self.fallback_driver = Some(Box::new(driver)); Ok(()) diff --git a/crates/shirabe/src/repository/vcs/vcs_driver.rs b/crates/shirabe/src/repository/vcs/vcs_driver.rs index 740d00e..b197676 100644 --- a/crates/shirabe/src/repository/vcs/vcs_driver.rs +++ b/crates/shirabe/src/repository/vcs/vcs_driver.rs @@ -187,8 +187,6 @@ impl VcsDriverBase { } } -// TODO(phase-b): the constructor is `final` in PHP; concrete implementations must replicate the -// initialization logic (local-path normalization etc.) from the original new() body. pub trait VcsDriver: VcsDriverInterface { fn url(&self) -> &str; fn url_mut(&mut self) -> &mut String; |
