git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git merge auto-commit doesn't fire pre-commit hook
@ 2011-02-16 22:49 Liam Clarke
  2011-02-17  4:36 ` Jay Soffian
  0 siblings, 1 reply; 6+ messages in thread
From: Liam Clarke @ 2011-02-16 22:49 UTC (permalink / raw)
  To: git

Hi all, 

How exactly does git merge execute the commit? Does it use --no-verify at all? I've got a pre-commit hook to filter out testing data when merging into master, and if you merge with --no-commit, and then manually commit, the hook fires fine, but when merge autocommits, the hook doesn't get executed at all. Is there any other way to catch this event? I can add --no-commit to the branch.master.mergeoptions I suppose, but I don't want to add too much hassle for our Git users (if they're not checking in test data, of course).

Regards, 

Liam Clarke

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-02-17  5:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-16 22:49 git merge auto-commit doesn't fire pre-commit hook Liam Clarke
2011-02-17  4:36 ` Jay Soffian
2011-02-17  4:44   ` Liam Clarke
2011-02-17  4:48     ` Jay Soffian
2011-02-17  4:52     ` Jay Soffian
2011-02-17  5:05       ` Liam Clarke

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).