From 769d7da9b21fc58bf82aebb3b1d9d5714c479ad8 Mon Sep 17 00:00:00 2001 From: Sven van Heugten Date: Mon, 2 Mar 2026 20:25:46 +0100 Subject: [PATCH] Use git init to immediately create the correct branch --- test/git-check-assertions.bats | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/git-check-assertions.bats b/test/git-check-assertions.bats index f4b27e8..9c5006f 100755 --- a/test/git-check-assertions.bats +++ b/test/git-check-assertions.bats @@ -7,10 +7,9 @@ setup() { DIR="$( cd "$( dirname "$BATS_TEST_FILENAME" )" >/dev/null 2>&1 && pwd )" PATH="$DIR/../bin:$PATH" - git init + git init -b main git config user.email "john.doe@example.com" git config user.name "John Doe" - git checkout -b main } @test "can run" {