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:
parent
a32101ab75
commit
a629f91b1e
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue