Skip to content

Commit 54c1e10

Browse files
committed
Don't stash when using pre-commit hook
1 parent 02b1af6 commit 54c1e10

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

git/hooks/pre-commit

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

33
use strict;
44
use warnings;
5+
56
# Hack to use carton's local::lib.
67
use lib 'local/lib/perl5';
78

89
use Code::TidyAll::Git::Precommit;
9-
Code::TidyAll::Git::Precommit->check();
10+
Code::TidyAll::Git::Precommit->check(
11+
no_stash => 1,
12+
tidyall_options => { verbose => $ENV{TIDYALL_VERBOSE} // 0 },
13+
);

0 commit comments

Comments
 (0)