diff options
Diffstat (limited to 'src/sub_commands/send.rs')
| -rw-r--r-- | src/sub_commands/send.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sub_commands/send.rs b/src/sub_commands/send.rs index 62c6a04..16f10c4 100644 --- a/src/sub_commands/send.rs +++ b/src/sub_commands/send.rs | |||
| @@ -51,7 +51,9 @@ pub async fn launch(cli_args: &Cli, args: &SubCommandArgs) -> Result<()> { | |||
| 51 | || args.since_or_revision_range.eq("master..HEAD") | 51 | || args.since_or_revision_range.eq("master..HEAD") |
| 52 | { | 52 | { |
| 53 | let branch_name = git_repo.get_checked_out_branch_name()?; | 53 | let branch_name = git_repo.get_checked_out_branch_name()?; |
| 54 | let (main_branch_name, main_tip) = git_repo.get_main_or_master_branch()?; | 54 | let (main_branch_name, main_tip) = git_repo |
| 55 | .get_main_or_master_branch() | ||
| 56 | .context("the default branches (main or master) do not exist")?; | ||
| 55 | if branch_name.eq(main_branch_name) { | 57 | if branch_name.eq(main_branch_name) { |
| 56 | println!("creating 1 patch from latest commit"); | 58 | println!("creating 1 patch from latest commit"); |
| 57 | vec![main_tip] | 59 | vec![main_tip] |