Skip to content

Cannot amend commits #110

@tdabasinskas

Description

@tdabasinskas

Bug description

Seems the recent versions that have changes in the hook broke the git --amend behavrior. Instead of amending the commit, Aicommit2 now adds it's output into the commit, which is quite bad:

git commit --amend --no-edit       
       _                    _ _   ___
  __ _(_)__ ___ _ __  _ __ (_) |_|_  )
 / _` | / _/ _ \ '  \| '  \| |  _|/ /
 \__,_|_\__\___/_|_|_|_|_|_|_|\__/___|


✔ Changes analyzed

✔ Saved commit message
[initial 8ea9108] # 🤖 Generated by aicommit2 (https://github.com/tak-bro/aicommit2) # ---------------------------------------- # How to use: # 1. The message below will be used # 2. Edit the message if needed # 3. Save and close the editor # ----------------------------------------
 Date: Sun Mar 16 16:15:55 2025 +0200

It was working OK with older versions.

aicommit2 version

v2.2.7

Environment

MacOS

Can you contribute a fix?

  • I’m interested in opening a pull request for this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions