Commit ab74b03
committed
Use init.defaultBranch instead of --initial-branch option
My local Git version does not yet know the `--initial-branch` and thus
the `FileGitAlgTest` fails with:
```
org.scalasteward.core.git.FileGitAlgTest:
==> X org.scalasteward.core.git.FileGitAlgTest.branchAuthors 0.585s java.io.IOException: 'VAR1=val1 VAR2=val2 git init . --initial-branch master' exited with code 129
error: unknown option `initial-branch'
```
Instead of using this option, we call `git init` now with the
`init.defaultBranch=master` config which should have the same effect as
the `--initial-branch` option according to the
[docs](https://git-scm.com/docs/git-init). Older Git versions just
ignore this config.
I hope this also fixes the problem mentioned in
cfe58571 parent 7de5efa commit ab74b03
File tree
1 file changed
+1
-1
lines changed- modules/core/src/test/scala/org/scalasteward/core/git
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
208 | | - | |
| 208 | + | |
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
| |||
0 commit comments