Skip to content

Commit

Permalink
Use carton lib for tidy pre-commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
rwstauner committed Jun 5, 2014
1 parent 19d28e9 commit 109abda
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cpanfile
Expand Up @@ -12,3 +12,6 @@ requires 'MetaCPAN::API';
requires 'MetaCPAN::API::Tiny';
requires 'WWW::Mechanize::Cached';
requires 'WWW::Mechanize::Cached::GZip';

# For the git pre-commit hook.
requires 'Code::TidyAll::Git::Precommit';
2 changes: 2 additions & 0 deletions git/hooks/pre-commit
Expand Up @@ -2,6 +2,8 @@

use strict;
use warnings;
# Hack to use carton's local::lib;
use lib 'local/lib/perl5';

use Code::TidyAll::Git::Precommit;
Code::TidyAll::Git::Precommit->check();

0 comments on commit 109abda

Please sign in to comment.