git-changelog-lib: Crash when git repo has no master branch
Hello, I’m trying to add git-changelog to my project.
My project does not have a master branch. I use version branches.
I get this crash when I run it: https://gist.github.com/mezz/b7efe8e440acc82105486c72c9dc5158
This seems to requite a master branch: https://github.com/tomasbjerre/git-changelog-lib/blob/master/src/main/java/se/bjurr/gitchangelog/internal/git/GitRepo.java#L314-L315
Here is my project: https://github.com/mezz/JustEnoughItems
I tried setting fromCommit to my first commit sha but it still crashes the same way.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 21 (10 by maintainers)
Commits related to this issue
- Finding first commit in repo as parents of HEAD #28 * Was looking at parents of master, which may not exist. — committed to tomasbjerre/git-changelog-lib by tomasbjerre 8 years ago
- Allowing master branch to be absent #28 — committed to tomasbjerre/git-changelog-lib by tomasbjerre 8 years ago
This is just the library. The plugin is another project.