Skip to content

Commit 31cd128

Browse files
sbeyergitster
authored andcommitted
t/perf: make runner work even if Git is not installed
aggregate.perl did not work when Git.pm is not installed to a directory contained in the default Perl library path list or PERLLIB. This commit prepends the Perl library path of the current Git source tree to enable this. Note that this commit adds a hard-coded relative path use lib '../../perl/blib/lib'; instead of the flexible environment-based variant use lib (split(/:/, $ENV{GITPERLLIB})); which is used in tests written in Perl. The hard-coded variant is used because the whole performance test framework does it that way (and GITPERLLIB is not set there). Signed-off-by: Stephan Beyer <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent ee6ad5f commit 31cd128

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

t/perf/aggregate.perl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/perl
22

3+
use lib '../../perl/blib/lib';
34
use strict;
45
use warnings;
56
use Git;

0 commit comments

Comments
 (0)