cli: Fix `inspect` command for non-delegates

Since non-delegates don't have `id` COBs, don't rely on it.
This commit is contained in:
cloudhead 2024-01-05 11:43:26 +01:00
parent 59c101fc59
commit 6bc7d297a5
No known key found for this signature in database
1 changed files with 1 additions and 2 deletions

View File

@ -144,7 +144,6 @@ pub fn run(options: Options, ctx: impl term::Context) -> anyhow::Result<()> {
let profile = ctx.profile()?;
let storage = &profile.storage;
let signer = term::signer(&profile)?;
let repo = storage
.repository(rid)
.context("No project with the given RID exists")?;
@ -210,7 +209,7 @@ pub fn run(options: Options, ctx: impl term::Context) -> anyhow::Result<()> {
}
Target::History => {
let identity = Identity::load(&repo)?;
let head = repo.identity_head_of(signer.public_key())?;
let head = repo.identity_head()?;
let history = repo.revwalk(head)?;
for oid in history {