1
0
mirror of https://github.com/git/git.git synced 2024-10-21 05:48:38 +02:00

Merge branch 'jk/perf-aggregate-wo-libjson'

The script to aggregate perf result unconditionally depended on
libjson-perl even though it did not have to, which has been
corrected.

* jk/perf-aggregate-wo-libjson:
  t/perf: depend on perl JSON only when using --codespeed
This commit is contained in:
Junio C Hamano 2019-05-13 23:50:34 +09:00
commit 6cfa633565

@ -3,7 +3,6 @@
use lib '../../perl/build/lib';
use strict;
use warnings;
use JSON;
use Getopt::Long;
use Git;
@ -342,7 +341,8 @@ sub print_codespeed_results {
}
}
print to_json(\@data, {utf8 => 1, pretty => 1, canonical => 1}), "\n";
require JSON;
print JSON::to_json(\@data, {utf8 => 1, pretty => 1, canonical => 1}), "\n";
}
binmode STDOUT, ":utf8" or die "PANIC on binmode: $!";