send-email: error out when relogin delay is missing
[gitweb.git] / git-send-email.perl
index 8a1ee0f0d43fdbc52b8257d973cb21063f318731..5bd689958eab2affa3f6fbe66e8ad0c7eb39fe1a 100755 (executable)
@@ -378,6 +378,10 @@ sub signal_handler {
 die __("Cannot run git format-patch from outside a repository\n")
        if $format_patch and not $repo;
 
+die __("`batch-size` and `relogin` must be specified together " .
+       "(via command-line or configuration option)\n")
+       if defined $relogin_delay and not defined $batch_size;
+
 # Now, let's fill any that aren't set in with defaults:
 
 sub read_config {