diff --git a/crates/uv-git/src/resolver.rs b/crates/uv-git/src/resolver.rs index b6f5440a50dc..75cc8150a88e 100644 --- a/crates/uv-git/src/resolver.rs +++ b/crates/uv-git/src/resolver.rs @@ -108,16 +108,7 @@ impl GitResolver { } } - // Fetch the precise SHA of the Git reference (which could be a branch, a tag, a partial - // commit, etc.). - let source = if let Some(reporter) = reporter { - GitSource::new(url.clone(), client, cache).with_reporter(reporter) - } else { - GitSource::new(url.clone(), client, cache) - }; - let fetch = tokio::task::spawn_blocking(move || source.fetch()) - .await? - .map_err(GitResolverError::Git)?; + let fetch = self.fetch(url, client, cache, reporter).await?; let git = fetch.into_git(); // Insert the resolved URL into the in-memory cache.