mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-16 00:00:37 +08:00
node: set identity head after fetch
Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com> X-Clacks-Overhead: GNU Terry Pratchett
This commit is contained in:
@@ -326,6 +326,14 @@ fn test_clone() {
|
||||
.unwrap();
|
||||
|
||||
assert_eq!(oid, *canonical);
|
||||
|
||||
// Make sure that bob has refs/rad/id set
|
||||
assert!(bob
|
||||
.storage
|
||||
.repository(acme)
|
||||
.unwrap()
|
||||
.identity_head()
|
||||
.is_ok());
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
@@ -328,6 +328,8 @@ impl<G: Signer + Ecdh + 'static> Worker<G> {
|
||||
log::debug!(target: "worker", "Fetch for {} exited successfully", rid);
|
||||
let head = repo.set_head()?;
|
||||
log::debug!(target: "worker", "Head for {} set to {head}", rid);
|
||||
let head = repo.set_identity_head()?;
|
||||
log::debug!(target: "worker", "'refs/rad/id' for {} set to {head}", rid);
|
||||
Ok(vec![])
|
||||
} else {
|
||||
log::error!(target: "worker", "Fetch for {} failed", rid);
|
||||
|
||||
Reference in New Issue
Block a user