Remove debug assertions in git_store.rs (#28706)

Closes #ISSUE

Release Notes:

- N/A
This commit is contained in:
Cole Miller 2025-04-14 14:25:18 -04:00 committed by GitHub
parent ff41be30dc
commit 6db29eb90a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3862,8 +3862,8 @@ impl Repository {
fn spawn_local_git_worker(
work_directory_abs_path: Arc<Path>,
dot_git_abs_path: Arc<Path>,
repository_dir_abs_path: Arc<Path>,
common_dir_abs_path: Arc<Path>,
_repository_dir_abs_path: Arc<Path>,
_common_dir_abs_path: Arc<Path>,
project_environment: WeakEntity<ProjectEnvironment>,
fs: Arc<dyn Fs>,
cx: &mut Context<Self>,
@ -3889,9 +3889,6 @@ impl Repository {
})
.await?;
debug_assert_eq!(backend.path().as_path(), repository_dir_abs_path.as_ref());
debug_assert_eq!(backend.main_repository_path().as_path(), common_dir_abs_path.as_ref());
if let Some(git_hosting_provider_registry) =
cx.update(|cx| GitHostingProviderRegistry::try_global(cx))?
{