Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make sure to allow specifying only a single commit (#9)
  • Loading branch information
MasterDuke17 committed Jul 14, 2016
1 parent 82d4ca8 commit dcb3929
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions benchable.pl
Expand Up @@ -56,6 +56,8 @@ sub process_message {
@commits = split("\n", $result);
my $num_commits = scalar @commits;
return "Too many commits ($num_commits) in range, you're only allowed 5" if ($num_commits > 5);
} else {
@commits = $config;
}

my ($succeeded, $code_response) = $self->process_code($code, $message);
Expand Down
2 changes: 2 additions & 0 deletions committable.pl
Expand Up @@ -55,6 +55,8 @@ 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);
} else {
@commits = $config;
}

my ($succeeded, $code_response) = $self->process_code($code, $message);
Expand Down

0 comments on commit dcb3929

Please sign in to comment.