Skip to content

Commit

Permalink
Ensure tests use "main" as default branch name #143
Browse files Browse the repository at this point in the history
  • Loading branch information
ljm42 authored Jul 9, 2022
1 parent 00a2cbb commit 243245a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/_test_helper.bash
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ function init_git_repo {
else
# Initialise test git repo at the same path as the test files
git init "$BATS_TEST_DIRNAME"
git checkout -b main
# Tests will fail if name and email aren't set
git config user.name "John Doe"
git config user.email [email protected]
Expand Down

0 comments on commit 243245a

Please sign in to comment.