Skip to content

Commit 6564e67

Browse files
committed
give pre-commit hook carton libs, path
1 parent 75f0056 commit 6564e67

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: git/hooks/pre-commit

+4
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@
22

33
use strict;
44
use warnings;
5+
use Config;
56
# Hack to use carton's local::lib.
67
use lib 'local/lib/perl5';
8+
$ENV{PATH} .= $Config{path_sep}.'local/bin';
9+
$ENV{PERL5LIB} = join $Config{path_sep},
10+
grep defined, $ENV{PERL5LIB}, 'local/lib/perl5';
711

812
use Code::TidyAll::Git::Precommit;
913
Code::TidyAll::Git::Precommit->check( no_stash => 1 );

0 commit comments

Comments
 (0)