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:
parent
59c101fc59
commit
6bc7d297a5
|
|
@ -144,7 +144,6 @@ pub fn run(options: Options, ctx: impl term::Context) -> anyhow::Result<()> {
|
||||||
|
|
||||||
let profile = ctx.profile()?;
|
let profile = ctx.profile()?;
|
||||||
let storage = &profile.storage;
|
let storage = &profile.storage;
|
||||||
let signer = term::signer(&profile)?;
|
|
||||||
let repo = storage
|
let repo = storage
|
||||||
.repository(rid)
|
.repository(rid)
|
||||||
.context("No project with the given RID exists")?;
|
.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 => {
|
Target::History => {
|
||||||
let identity = Identity::load(&repo)?;
|
let identity = Identity::load(&repo)?;
|
||||||
let head = repo.identity_head_of(signer.public_key())?;
|
let head = repo.identity_head()?;
|
||||||
let history = repo.revwalk(head)?;
|
let history = repo.revwalk(head)?;
|
||||||
|
|
||||||
for oid in history {
|
for oid in history {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue