简体   繁体   中英

Git Hook post-receive not executing

--Git hook newbie --

Post-receive not executing when pushed to a git hosted in git lab.

The git repo in our live server is a clone of the gitlab repo.

Why does when i push to the gitlab repo, the git in the live server does not execute the post-receive in the hooks.

Do i need something to set up in the gitlab?

The post-receive is in the live server .git/hooks/post-receive but not on the local and is not pushed in the gitlab repo

官方指南所示,您不必在.git/hooks/post-receive安装钩子,而应在/home/git/repositories/<group>/<project>.git/custom_hooks/安装/home/git/repositories/<group>/<project>.git/custom_hooks/ (如果由源安装)或在/var/opt/gitlab/git-data/repositories/<group>/<project>.git/custom_hooks/如果由Omnibus安装)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM