Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Seems to have issues with amending a commit. #3

Open
cheako opened this issue Mar 19, 2023 · 1 comment
Open

Seems to have issues with amending a commit. #3

cheako opened this issue Mar 19, 2023 · 1 comment

Comments

@cheako
Copy link
Contributor

cheako commented Mar 19, 2023

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
Copy link
Contributor Author

cheako commented Mar 19, 2023

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant