Closed MingweiSamuel closed 9 months ago
Thanks for reporting! It's true, the assertion is wrong as 'handled above' will in fact fail for an unborn HEAD
, but not for a detached one.
I have fixed-up the logic and you are welcome to try it out. Since it now doesn't collect history anymore, it won't generate changelogs at all which might not be what you want.
Seems to work now. I don't actually have a use case for releasing on detached head besides for testing
https://github.com/Byron/cargo-smart-release/blob/7892013f41557d8df5390a6f2855bb5e79632fe6/src/git/history.rs#L35-L43