I have run gitlabhq rails server on virtual machine, following 1-6 steps from this tutorial https://github.com/gitlabhq/gitlab-recipes/blob/master/install/centos/README.md a
Go to Project settings --> Hooks --> (Under) Pre-receive hooks
Disable cp require issue reference in commits