Skip to content

Commit 2cd91ec

Browse files
committed
Merge branch 'xz/send-email-batch-size'
"git send-email" learned to complain when the batch-size option is not defined when the relogin-delay option is, since these two are mutually required. * xz/send-email-batch-size: send-email: error out when relogin delay is missing
2 parents c1a7902 + 9caa706 commit 2cd91ec

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

git-send-email.perl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,10 @@ sub signal_handler {
379379
die __("Cannot run git format-patch from outside a repository\n")
380380
if $format_patch and not $repo;
381381

382+
die __("`batch-size` and `relogin` must be specified together " .
383+
"(via command-line or configuration option)\n")
384+
if defined $relogin_delay and not defined $batch_size;
385+
382386
# Now, let's fill any that aren't set in with defaults:
383387

384388
sub read_config {

0 commit comments

Comments
 (0)