Skip to content

Commit

Permalink
Merge pull request #2806 from scala-steward-org/topic/use-initialBran…
Browse files Browse the repository at this point in the history
…ch-git-config

Use init.defaultBranch instead of --initial-branch option
  • Loading branch information
fthomas authored Nov 30, 2022
2 parents 0a6e3e0 + 3e46bfa commit f1b1631
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ object FileGitAlgTest {
for {
_ <- gitAlg.removeClone(repo)
_ <- fileAlg.ensureExists(repo)
_ <- git("init", ".", "--initial-branch", "master")(repo)
_ <- git("-c", s"init.defaultBranch=${master.name}", "init", ".")(repo)
_ <- gitAlg.setAuthor(repo, config.gitCfg.gitAuthor)
_ <- git("commit", "--allow-empty", "-m", "Initial commit")(repo)
} yield ()
Expand Down

0 comments on commit f1b1631

Please sign in to comment.