chatgpt_commit_message_hook icon indicating copy to clipboard operation
chatgpt_commit_message_hook copied to clipboard

Seems to have issues with amending a commit.

Open cheako opened this issue 2 years ago • 1 comments
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 avatar Mar 19 '23 18:03 cheako

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'

cheako avatar Mar 19 '23 18:03 cheako