Skip to content

Commit

Permalink
Set init.defaultBranch when running tests if it is not already set (#620
Browse files Browse the repository at this point in the history
)

Signed-off-by: James Couball <jcouball@yahoo.com>
  • Loading branch information
jcouball committed Feb 19, 2023
1 parent 9ee7ca9 commit a8bfb9d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/test
Original file line number Diff line number Diff line change
Expand Up @@ -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__, '..'))

Expand Down

0 comments on commit a8bfb9d

Please sign in to comment.