Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
cli: Sign refs and set head in `rad delegate add`
Alexis Sellier committed 2 years ago
commit 5c326cf24246ca85d9784b1f620c1abbb1e5ce08
parent 883b548c61e1282499503be2516f5fa6a34ba754
1 file changed +3 -1
modified radicle-cli/src/commands/delegate/add.rs
@@ -2,7 +2,7 @@ use anyhow::Context as _;

use radicle::{
    prelude::{Did, Id},
-
    storage::{WriteRepository as _, WriteStorage},
+
    storage::{SignRepository, WriteRepository as _, WriteStorage},
    Profile,
};
use radicle_crypto::PublicKey;
@@ -42,6 +42,8 @@ where
                repo.raw(),
            )
        })?;
+
        repo.sign_refs(&signer)?;
+
        repo.set_identity_head()?;
        term::info!("Added delegate '{}'", Did::from(key));
        term::success!("Update successful!");
        Ok(())