Multi-line commits

I like to add detailed commits. When Cursor creates one, run_terminal_cmd borks on it with this message: “Ah, it seems my attempt to commit failed because the commit message contained newline characters, which is not allowed by the run_terminal_cmd tool. I need to format the commit message as a single line or use a method that handles multi-line commit messages correctly when using this tool.”

Can the tool be updated to support multi-line, detailed commits, or should I just tell it to use the -F flag and point it to a file?

1 Like

The problem still exists. Moreover, when I want to use the file method to submit multi - line commits, an emoji garbled problem occurs. (My environment is windows + git bash). When I manually open git bash and use the command to write emojis into the file, there will be no garbled characters. But when I let Cursor use the command to write emojis into the file, it will be garbled. I don’t know what’s going on.