Skip to content

Commit 243245a

Browse files
authored
Ensure tests use "main" as default branch name #143
1 parent 00a2cbb commit 243245a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/_test_helper.bash

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ function init_git_repo {
88
else
99
# Initialise test git repo at the same path as the test files
1010
git init "$BATS_TEST_DIRNAME"
11+
git checkout -b main
1112
# Tests will fail if name and email aren't set
1213
git config user.name "John Doe"
1314
git config user.email [email protected]

0 commit comments

Comments
 (0)