Giter Club home page Giter Club logo

Comments (8)

zurawiki avatar zurawiki commented on July 19, 2024 1
$ RUST_LOG=trace git commit -a
2023-01-20T04:26:30.577Z DEBUG [gptcommit] Args { action: PrepareCommitMsg(PrepareCommitMsgArgs { commit_msg_file: ".git/COMMIT_EDITMSG", commit_source: Template, commit_sha: Some(""), git_diff_content: None }) }
🤖 Skipping gptcommit because githook is not run on commit
hint: Waiting for your editor to close the file...

Looking at commit_source: Template it seems you might have a commit template
set. Can you try removing the git config --local commit.template and see if the issue goes away.

Because the githook detected the user is supplying their own template, we make sure not to overwrite it with GPT

from gptcommit.

zurawiki avatar zurawiki commented on July 19, 2024

Thanks for the feedback! Can you try running the git commit command with the RUST_LOG envvar set to trace?

RUST_LOG=trace git commit ...

That might get give us a bit more context into what is going on

from gptcommit.

nixsiow avatar nixsiow commented on July 19, 2024

Thanks for your reply!

These are the outputs:

$ RUST_LOG=trace git commit -a
2023-01-20T04:26:30.577Z DEBUG [gptcommit] Args { action: PrepareCommitMsg(PrepareCommitMsgArgs { commit_msg_file: ".git/COMMIT_EDITMSG", commit_source: Template, commit_sha: Some(""), git_diff_content: None }) }
🤖 Skipping gptcommit because githook is not run on commit
hint: Waiting for your editor to close the file...

from gptcommit.

roukmoute avatar roukmoute commented on July 19, 2024

I have the same problem.

➤  git status
On branch foobar
Changes to be committed:
  (use "git restore --staged <file>..." to unstage)
        new file:   test

➤  RUST_LOG=trace git commit        
🤖 Skipping gptcommit because githook is not run on commit

from gptcommit.

nixsiow avatar nixsiow commented on July 19, 2024
$ RUST_LOG=trace git commit -a
2023-01-20T04:26:30.577Z DEBUG [gptcommit] Args { action: PrepareCommitMsg(PrepareCommitMsgArgs { commit_msg_file: ".git/COMMIT_EDITMSG", commit_source: Template, commit_sha: Some(""), git_diff_content: None }) }
🤖 Skipping gptcommit because githook is not run on commit
hint: Waiting for your editor to close the file...

Looking at commit_source: Template it seems you might have a commit template set. Can you try removing the git config --local commit.template and see if the issue goes away.

Because the githook detected the user is supplying their own template, we make sure not to overwrite it with GPT

Thanks! It is working perfectly now! Very cool! I'd prefer if there is a way, maybe with flag, to switch between using GPT and local/global commit template. Or perhaps, a wrap over git commit -a with custom flag to overwrite the local/global template. Anyway, thanks a lot for your help!

from gptcommit.

roukmoute avatar roukmoute commented on July 19, 2024

It's great that it works!

I think you can now close the ticket, but it would be an added bonus to update the README file with a section on "frequent problems". What do you think?

from gptcommit.

zurawiki avatar zurawiki commented on July 19, 2024

Good point, I've updated the readme.

from gptcommit.

LouisShark avatar LouisShark commented on July 19, 2024

Screenshot 2023-02-14 at 02 37 07

the same error @zurawiki

from gptcommit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.