Gitlab pre-commit hook
<p>I would like to use pre-commit hook in gitlab. I doing everything like in documentation: <a href="https://docs.gitlab.com/ce/administration/custom_hooks.html" rel="noreferrer">https://docs.gitlab.com/ce/administration/custom_hooks.html</a></p>

<p>In custom_hooks directory I've created pre-commit file with folowing content:</p>

<pre><code>#!/bin/bash

exit 1
</code></pre>

<p>Hook is never triggered, couse i can commit. </p>

<p>When i do the same with pre-receive hook - everything works good. </p>

<p>If Gitlab doesnt't let to use pre-commit hook?</p>