diff --git a/t/00-testcritic.t b/t/00-testcritic.t index debd8b2f18..66458df707 100755 --- a/t/00-testcritic.t +++ b/t/00-testcritic.t @@ -14,5 +14,5 @@ if ( $EVAL_ERROR ) { } Test::Perl::Critic->import( -profile => '.perlcriticrc' ); -my @files = map { chomp; $_ } `git ls-tree -r master --name-only`; # only files part of git +my @files = map { chomp; $_ } `git ls-tree -r HEAD --name-only`; # only files part of git all_critic_ok(@files); diff --git a/xt/check_makefile.t b/xt/check_makefile.t index 69b0f24891..91235bfa14 100755 --- a/xt/check_makefile.t +++ b/xt/check_makefile.t @@ -26,7 +26,7 @@ use File::Slurp qw( read_file ); use Data::Dumper; my $curdir = File::Spec->curdir(); -my @dirs = `git ls-tree -d --name-only master`; +my @dirs = `git ls-tree -d --name-only HEAD`; my $makefile = read_file("$curdir/Makefile.PL"); my @missing; for my $d ( sort @dirs ) {