Skip to content

Commit f1b1631

Browse files
authored
Merge pull request #2806 from scala-steward-org/topic/use-initialBranch-git-config
Use init.defaultBranch instead of --initial-branch option
2 parents 0a6e3e0 + 3e46bfa commit f1b1631

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/core/src/test/scala/org/scalasteward/core/git/FileGitAlgTest.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ object FileGitAlgTest {
205205
for {
206206
_ <- gitAlg.removeClone(repo)
207207
_ <- fileAlg.ensureExists(repo)
208-
_ <- git("init", ".", "--initial-branch", "master")(repo)
208+
_ <- git("-c", s"init.defaultBranch=${master.name}", "init", ".")(repo)
209209
_ <- gitAlg.setAuthor(repo, config.gitCfg.gitAuthor)
210210
_ <- git("commit", "--allow-empty", "-m", "Initial commit")(repo)
211211
} yield ()

0 commit comments

Comments
 (0)