Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Commit

Permalink
cli: Fix inspect command for non-delegates
Browse files Browse the repository at this point in the history
Since non-delegates don't have `id` COBs, don't rely on it.
  • Loading branch information
cloudhead committed Jan 5, 2024
1 parent 59c101f commit 6bc7d29
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions radicle-cli/src/commands/inspect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")?;
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 6bc7d29

Please sign in to comment.