git-gui icon indicating copy to clipboard operation
git-gui copied to clipboard

prepare-commit-msg hook fails because the commit message file does not exist

Open JulienGrv opened this issue 1 year ago • 0 comments

Hi everyone,

When I start git gui in Git for Windows, my prepare-commit-msg hook fails because the path to the commit message file that is passed does not exist. However, based on the official documentation of the Git hooks, this argument is required. It seems like an issue in git gui which should create the commit-msg file even if empty or otherwise not trigger the prepare-commit-msg at all.

Thank you for your support, Julien

JulienGrv avatar Feb 27 '23 21:02 JulienGrv