Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
committable: LIMIT constant, limit bumped to 300
Note that it does not run anything in parallel, so it is a bit slow.
  • Loading branch information
AlexDaniel committed Jul 15, 2016
1 parent 40fb215 commit 4b7b3b4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion committable.pl
Expand Up @@ -26,6 +26,8 @@ package Committable;

use Cwd qw(cwd abs_path);

use constant LIMIT => 300;

my $name = 'committable';

sub process_message {
Expand Down Expand Up @@ -54,7 +56,7 @@ sub process_message {

@commits = split("\n", $result);
my $num_commits = scalar @commits;
return "Too many commits ($num_commits) in range, you're only allowed 10" if ($num_commits > 10);
return "Too many commits ($num_commits) in range, you're only allowed 10" if ($num_commits > LIMIT);
} else {
@commits = $config;
}
Expand Down

0 comments on commit 4b7b3b4

Please sign in to comment.