vimagit icon indicating copy to clipboard operation
vimagit copied to clipboard

Pre-commit hook preventing commit leads to Vimagit wanting to amend the last commit

Open erAck opened this issue 7 years ago • 3 comments

Having a pre-commit hook that vetoes the current commit (for example because of trailing blanks or other checks), Vimagit on pressing CC acts as if CA was pressed and wants to amend the last commit instead of creating a new one. Equally bad, it does not display the output of the commit hook.

erAck avatar Feb 16 '18 12:02 erAck

OK, I get your setup.

Anyway, could you provide your pre commit hook and a faulty commit please?

jreybert avatar Feb 16 '18 12:02 jreybert

Hook in question is https://cgit.freedesktop.org/libreoffice/core/tree/.git-hooks/pre-commit Faulty commit would be any source file with a trailing blank on a line.

erAck avatar Feb 16 '18 12:02 erAck

OK thanks.

jreybert avatar Feb 16 '18 12:02 jreybert