From af10463ae31f0d26229f9752b287fe00941b4844 Mon Sep 17 00:00:00 2001 From: James Couball Date: Sat, 18 Feb 2023 16:38:26 -0800 Subject: [PATCH] Set init.defaultBranch when running tests if it is not already set Signed-off-by: James Couball --- bin/test | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/test b/bin/test index 7572f0ba..10115417 100755 --- a/bin/test +++ b/bin/test @@ -5,6 +5,7 @@ require 'bundler/setup' `git config --global user.email "git@example.com"` if `git config user.email`.empty? `git config --global user.name "GitExample"` if `git config user.name`.empty? +`git config --global init.defaultBranch master` if `git config init.defaultBranch`.empty? project_root = File.expand_path(File.join(__dir__, '..'))