upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/sub_commands/prs/list.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/sub_commands/prs/list.rs')
-rw-r--r--src/sub_commands/prs/list.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/sub_commands/prs/list.rs b/src/sub_commands/prs/list.rs
index 96004d4..88b325b 100644
--- a/src/sub_commands/prs/list.rs
+++ b/src/sub_commands/prs/list.rs
@@ -27,12 +27,8 @@ pub async fn launch(
27) -> Result<()> { 27) -> Result<()> {
28 let git_repo = Repo::discover().context("cannot find a git repository")?; 28 let git_repo = Repo::discover().context("cannot find a git repository")?;
29 29
30 let (main_or_master_branch_name, _) = git_repo
31 .get_main_or_master_branch()
32 .context("no main or master branch")?;
33
34 let root_commit = git_repo 30 let root_commit = git_repo
35 .get_root_commit(main_or_master_branch_name) 31 .get_root_commit()
36 .context("failed to get root commit of the repository")?; 32 .context("failed to get root commit of the repository")?;
37 33
38 // TODO: check for empty repo 34 // TODO: check for empty repo