Skip to content

Commit

Permalink
Fix Bisectable bug for good (oops)
Browse files Browse the repository at this point in the history
I tried to do it in 9137dfd but I did not think it through enough.
This time I tested it. 😇
  • Loading branch information
AlexDaniel committed Oct 9, 2023
1 parent 606b064 commit 5cce2a9
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions lib/Whateverable/Bisection.pm6
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,18 @@ sub run-bisect(&runner = &standard-runner, #← Something to run on every revi
<git rev-parse HEAD>)<output>;
take »»»»» Testing $current-commit;

my $revision-type;
if $skip-missing-builds and not build-exists $current-commit {
take »»»»» Build does not exist, skip this commit;
take get-output(cwd => $repo-cwd, <git bisect>, Skip.lc)<output>;
next
$revision-type = Skip;
} else {
my $run-result = &runner( :$current-commit, |%custom);
$revision-type = &decider($run-result, :$current-commit, |%custom);
}

my $run-result = &runner( :$current-commit, |%custom);
my $revision-type = &decider($run-result, :$current-commit, |%custom);
my $result = get-output cwd => $repo-cwd,
<git bisect>, $revision-type.lc;
my $result = get-output cwd => $repo-cwd, <git bisect>, $revision-type.lc;
$status = $result<exit-code>;

if $result<output> ~~ /^^ (\S+) ‘ is the first new commit’ / {
$first-new-commit = ~$0;
take $result<output>;
Expand Down

0 comments on commit 5cce2a9

Please sign in to comment.