AndreasAugustin / go-gitmoji-cli

:octocat: A conventional gitmoji commit interactive command line tool for using emojis on conventional commits. :rocket:
https://gitmoji.dev/
MIT License
8 stars 0 forks source link

[Bug]: hook complains about missing message when amending #131

Closed bvolkmer closed 5 months ago

bvolkmer commented 6 months ago

Is there an existing issue for this?

Describe the bug

When using the hook, it complains about a missing message instead of using the message of the amended commit

Expected Behavior

Use commit message

Current Behavior

Failes with fatal error: issue reading and parsing the commit msg file the amount of messages is to low or to high

Steps To Reproduce

git commit --amend

Possible Solution

No response

Additional Information/Context

No response

go-gitmoji-cli Version

v0.5.1-alpha (9f5f526)

AndreasAugustin commented 5 months ago

Hi @bvolkmer thanks for providing a bug report. I will look into the issue soon.

AndreasAugustin commented 5 months ago

@all-contributors please add @bvolkmer for bug

allcontributors[bot] commented 5 months ago

@AndreasAugustin

I've put up a pull request to add @bvolkmer! :tada:

AndreasAugustin commented 5 months ago

@bvolkmer the bug is confirmed. Thanks again for reporting! The same issue appears if you do a rebase.

Will be fixed with #136

Update is fixed with v0.5.2-alpha. Please reinstall the hook within your repository

go-gitmoji-cli hooks rm
go-gitmoji-cli hooks init