I created the new file pre-receive.d in the /opt/gitlab/embedded/service/gitlab-shell/hooks and added the below two line to check if the hook working or not,
#!/usr/bin/env bash
echo "test bash hook"
But I didn`t get the above text in the git push screen. How can I confirm is this hook working or not?
Hi folks.
I am also facing same issue with pre-recive hook which i make as executable file and also followed.
``mkdir -p /gitlab-shell/hooks/pre-receive.d
chown git:git /gitlab-shell/hooks/pre-receive.d
link or copy your script of course it needs to be executable by the Gitlab user