Post-receive hooks do not fire for merge or commit performed in UI

In GitLab 10.6.0 CE, post-receive hooks work fine when pushing to a remote repository, but do not fire when a merge or commit is performed through the UI.

It looks like there are some old bugs in which this was the case, so this may be a regression: