Skip to content

Commit d72c8df

Browse files
committed
tests: cope with default git branch being main (not master)
1 parent 94444c2 commit d72c8df

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

t/mldistwatch-big.t

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,9 @@ subtest "first indexing" => sub {
6767

6868
subtest "meagre git tests" => sub {
6969
ok(
70-
-e $result->tmpdir->file('git/.git/refs/heads/master'),
71-
"we now have a master commit",
70+
-e $result->tmpdir->file('git/.git/refs/heads/master')
71+
|| -e $result->tmpdir->file('git/.git/refs/heads/main'),
72+
"we now have a master or main commit",
7273
);
7374
};
7475
};

0 commit comments

Comments
 (0)