@@ -143,7 +143,7 @@ method process($message, $config, $code is copy) {
143
143
for @ commits -> $ commit {
144
144
# convert to real ids so we can look up the builds
145
145
my $ full-commit = self . to-full-commit($ commit );
146
- my $ short-commit = $ commit . substr ( 0 , 7 );
146
+ my $ short-commit = self . get-short-commit( $ commit );
147
147
if not defined $ full-commit {
148
148
% times {$ short-commit }<err > = ‘ Cannot find this revision’ ;
149
149
} elsif not self . build-exists($ full-commit ) {
@@ -178,7 +178,7 @@ Z: loop (my int $x = 0; $x < @commits - 1; $x++) {
178
178
if abs (% times {@ commits [$ x ]}<min > - % times {@ commits [$ x + 1 ]}<min >) >= % times {@ commits [$ x ]}<min >* 0.1 {
179
179
my ($ new-commit , $ exit-status , $ exit-signal , $ time ) = self . get-output(' git' , ' rev-list' , ' --bisect' , ' --no-merges' , @ commits [$ x ] ~ ' ^..' ~ @ commits [$ x + 1 ]);
180
180
if $ exit-status == 0 and $ new-commit . defined and $ new-commit ne ' ' {
181
- my $ short-commit = $ new-commit . substr ( 0 , 7 );
181
+ my $ short-commit = self . get-short-commit( $ new-commit );
182
182
if not self . build-exists($ new-commit ) {
183
183
% times {$ short-commit }<err > = ‘ No build for this commit’ ;
184
184
} elsif % times {$ short-commit }:! exists and $ short-commit ne @ commits [$ x ] and $ short-commit ne @ commits [$ x + 1 ] { # actually run the code
@@ -191,7 +191,7 @@ Z: loop (my int $x = 0; $x < @commits - 1; $x++) {
191
191
}
192
192
}
193
193
194
- @ commits .= map (*. substr ( 0 , 7 ) );
194
+ @ commits .= map ({ self . get-short-commit( $ _ ) } );
195
195
196
196
if @ commits >= ITERATIONS {
197
197
my $ pfilename = ' plot.svg' ;
0 commit comments