chatgpt_commit_message_hook
chatgpt_commit_message_hook copied to clipboard
Seems to have issues with amending a commit.
trafficstars
I don't have the error handy, but I think it couldn't find .git/COMMIT_MSG.
Also what if I wanted to re-word every commit, say for when a new language model is released. Edit: Or the first lang model, https://gitlab.com/cheako/ash-tray-rs/-/commits/master
cheako@mx1:~/src/gitlab/chatgpt_commit_message_hook$ git commit --am
Traceback (most recent call last):
File "/usr/bin/prepare-commit-msg", line 18, in <module>
current_commit_file_content = open(COMMIT_MSG_FILE, 'r').read()
^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '.git/COMMIT_EDITMSG commit HEAD'