diff options
Diffstat (limited to 'src/sub_commands/claim.rs')
| -rw-r--r-- | src/sub_commands/claim.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/sub_commands/claim.rs b/src/sub_commands/claim.rs index 05ad961..d3a80c8 100644 --- a/src/sub_commands/claim.rs +++ b/src/sub_commands/claim.rs | |||
| @@ -33,12 +33,8 @@ pub struct SubCommandArgs { | |||
| 33 | pub async fn launch(cli_args: &Cli, args: &SubCommandArgs) -> Result<()> { | 33 | pub async fn launch(cli_args: &Cli, args: &SubCommandArgs) -> Result<()> { |
| 34 | let git_repo = Repo::discover().context("cannot find a git repository")?; | 34 | let git_repo = Repo::discover().context("cannot find a git repository")?; |
| 35 | 35 | ||
| 36 | let (main_or_master_branch_name, _) = git_repo | ||
| 37 | .get_main_or_master_branch() | ||
| 38 | .context("no main or master branch")?; | ||
| 39 | |||
| 40 | let root_commit = git_repo | 36 | let root_commit = git_repo |
| 41 | .get_root_commit(main_or_master_branch_name) | 37 | .get_root_commit() |
| 42 | .context("failed to get root commit of the repository")?; | 38 | .context("failed to get root commit of the repository")?; |
| 43 | 39 | ||
| 44 | // TODO: check for empty repo | 40 | // TODO: check for empty repo |