Skip to content

Commit a8bfb9d

Browse files
authored
Set init.defaultBranch when running tests if it is not already set (#620)
Signed-off-by: James Couball <jcouball@yahoo.com>
1 parent 9ee7ca9 commit a8bfb9d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bin/test

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ require 'bundler/setup'
55

66
`git config --global user.email "git@example.com"` if `git config user.email`.empty?
77
`git config --global user.name "GitExample"` if `git config user.name`.empty?
8+
`git config --global init.defaultBranch master` if `git config init.defaultBranch`.empty?
89

910
project_root = File.expand_path(File.join(__dir__, '..'))
1011

0 commit comments

Comments
 (0)