git/list[1] front-page[2] threads[3] people[4] search[5] about
 

git gui and commit-msg hook

From
BGBlucher, Guy <guy.blucher@dsto.defence.gov.au>
Date
Jan 16, 2008, 23:13 UTC
Message-ID
<054F21930D24A0428E5B4588462C7AEDC5F8DC@ednex512.dsto.defence.gov.au>
In-Reply-To
<054F21930D24A0428E5B4588462C7AEDC5F8DB@ednex512.dsto.defence.gov.au>
Hi,

Is the commit-msg hook supposed to work when using git gui to do a commit?

I've just setup a commit-msg hook in my local repository. It works as advertised from the command-line when using git commit, but if I use git gui to do the commit, then the hook is ignored.

I also have a pre-commit hook in my repository which runs fine when using 'git gui' or 'git commit'.

All I want to do is verify that the text of a commit message follows some "corporate standard", perhaps I can do this using the pre-commit hook instead, but commit-msg seems to be the best fit?

Regards, Guy.

IMPORTANT: This email remains the property of the Australian Defence Organisation and is subject to the jurisdiction of section 70 of the CRIMES ACT 1914.  If you have received this email in error, you are requested to contact the sender and delete the email.
Next: Shawn O. Pearce
Message 1 of 5 in “git gui and commit-msg hook”
  1. Blucher, GuyJan 16, 2008
  2. Shawn O. PearceJan 18, 2008
  3. Shawn O. PearceJan 21, 2008
  4. Junio C HamanoJan 21, 2008
  5. Shawn O. PearceJan 21, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.