Skip to content

hook not work #191

@Chindada

Description

@Chindada

version: v0.14.2

To Reproduce

  1. git commit
  2. enter commit message edit vi
  3. enter :q

Describe the bug
It will commit during the vi editor is showing, when i leaving vi, error occurs.

git commit
golangci-lint........................................(no files to check)Skipped
trim trailing whitespace.................................................Passed
fix end of files.........................................................Passed
check yaml...........................................(no files to check)Skipped
check that scripts with shebangs are executable..........................Passed
detect private key.......................................................Passed
Summarize the commit message use gpt-4o model
We are trying to summarize a git diff
PromptTokens: 589, CompletionTokens: 15, TotalTokens: 604
We are trying to summarize a title for pull request
PromptTokens: 196, CompletionTokens: 5, TotalTokens: 201
We are trying to get conventional commit prefix (Tools)
PromptTokens: 398, CompletionTokens: 5, TotalTokens: 403
================Commit Summary====================

build: improve system performance and stability

- Change Docker run command to use detached mode (`-d` flag)

==================================================
Write the commit message to .git/COMMIT_EDITMSG file
Git record changes to the repository
[develop dff0b2a] build: improve system performance and stability
 1 file changed, 1 insertion(+), 1 deletion(-)
fatal: cannot lock ref 'HEAD': is at dff0b2a88ce8089b4b24a61b1a4af5a31c8551f2 but expected b8e772c02c69640938447f6b2f8474ddb77fafcc
build: improve system performance and stability

- Change Docker run command to use detached mode (`-d` flag)

Signed-off-by: Tim Hsu@M2MAX-20230327 <maochindada@gmail.com>
~                                                                                                                                             
~                                                                                                                                             
~                                                                                                                                             
~                                                                                                                                             
~                                                                                                                                             
~                                                                                                                                             
~                                                                                                                                             
~                                                                                                                                             
~                                                                                                                                             
~                                                                                                                                             
~                                                                                                                                             
~                                                                                                                                             
~                                                                                                                                             
~                                                                                                                                             
~                                                                                                                                             
~                                                                                                                                             
~                                                                                                                                             
~                                                                                                                                             
"~/dev_projects/iom/mojave/.git/COMMIT_EDITMSG" 5L, 173B

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions