From d00760732dfe3d064ccff1683bc5d095961bf1a1 Mon Sep 17 00:00:00 2001 From: Sven Weidauer Date: Sun, 5 Jun 2022 13:19:08 +0200 Subject: [PATCH] Specify branch name with git init --- spec/git.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spec/git.rb b/spec/git.rb index 474e7b5..34128b1 100644 --- a/spec/git.rb +++ b/spec/git.rb @@ -15,8 +15,7 @@ module Git def initialize @path = Dir.mktmpdir - git 'init' - git 'branch', '-m', 'main' + git 'init', '-b', 'main' git 'config', 'user.name', 'Test User' git 'config', 'user.email', 'test@example.com' end