Skip to content

Commit 6f1335e

Browse files
committed
Oops (fix after LEAVE chdir changes)
1 parent 1310bf5 commit 6f1335e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Committable.p6

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,9 @@ method process($message, $config, $code is copy) {
4848
return Bad start if run(git, rev-parse, --verify, $<start>).exitcode != 0;
4949
return Bad end if run(git, rev-parse, --verify, $<end>).exitcode != 0;
5050
my ($result, $exit-status, $exit-signal, $time) = self.get-output(git, rev-list, $<start>^..$<end>);
51+
return Couldn't find anything in the range if $exit-status != 0;
52+
@commits = $result.split: \n;
5153
}
52-
return Couldn't find anything in the range if $exit-status != 0;
53-
54-
@commits = $result.split: \n;
5554
my $num-commits = @commits.elems;
5655
return Too many commits ($num-commits) in range, you're only allowed {LIMIT} if $num-commits > LIMIT;
5756
} elsif $config ~~ /:i releases / {

0 commit comments

Comments
 (0)