Skip to content

Commit

Permalink
Explicitly set a default branch when initializing the test git repo.
Browse files Browse the repository at this point in the history
This avoid git printng out a ~10 line warning, which clutters the output.
  • Loading branch information
rspier committed May 5, 2024
1 parent d630851 commit 37c15f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/lib/PAUSE/TestPAUSE.pm
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ sub _build_pause_config_overrides {

{
my $chdir_guard = pushd($git_dir);
system(qw(git init)) and die "error running git init";
system(qw(git init --initial-branch master)) and die "error running git init";

my $git_config = File::Spec->catdir($git_dir, '.git/config');
open my $config_fh, '>', $git_config
Expand Down

0 comments on commit 37c15f4

Please sign in to comment.