git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* commit-msg hook does not run on merge with --no-ff option
@ 2017-09-11 14:34 Joseph Dunne
  2017-09-11 17:25 ` Stefan Beller
  0 siblings, 1 reply; 7+ messages in thread
From: Joseph Dunne @ 2017-09-11 14:34 UTC (permalink / raw)
  To: git

I’ve globally configured git master branch to use the –no-ff option in
my .gitconfig file:
[branch "master"]
                mergeoptions = “-–no-ff”

When I merge a branch into master that would normally be a fast
forward merge, the merge happens fine and follows the option –no-ff,
creating a new commit, however my commit-msg hook does not run.  (The
commit-msg hook works fine in all other commits / merges.)

I tried changing my commit-msg hook to just be “exit 1” and it doesn’t
abort a no-ff merge, so I’m certain the hook is just not being
executed.

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

end of thread, other threads:[~2017-09-20 20:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-11 14:34 commit-msg hook does not run on merge with --no-ff option Joseph Dunne
2017-09-11 17:25 ` Stefan Beller
2017-09-12 18:24   ` Joseph Dunne
2017-09-15  1:50     ` Kaartic Sivaraam
2017-09-15 13:19       ` Joseph Dunne
2017-09-15 20:53         ` Junio C Hamano
2017-09-20 20:09           ` Joseph Dunne

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).