mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-29 05:50:31 +08:00
node: Get the failing fetch tests passing
We fix the failing fetch tests by: 1. Not verifying our own refs, unless we're cloning, since we're otherwise not fetching our own refs. 2. Always force-fetching `sigrefs` from remotes into the staging copy. 3. Making sure that sigref updates are fast-forward before transfering the remote into the production copy.
This commit is contained in:
@@ -229,7 +229,8 @@ impl Worker {
|
||||
namespaces: &Namespaces,
|
||||
mut channels: Channels,
|
||||
) -> Result<(Vec<RefUpdate>, HashSet<NodeId>), FetchError> {
|
||||
let staging = fetch::StagingPhaseInitial::new(&self.storage, rid, namespaces.clone())?;
|
||||
let staging =
|
||||
fetch::StagingPhaseInitial::new(&self.storage, rid, self.nid, namespaces.clone())?;
|
||||
let refs = if staging.repo.is_cloning() {
|
||||
match self._fetch(
|
||||
&staging.repo,
|
||||
|
||||
Reference in New Issue
Block a user