You can install a side hook, but it is not very well documented. Gitlab is currently integrating gitlab-shell and gitaly . Thus, providing instructions is a slightly moving goal, but they are valid from version 12.3.5.
The scripts in gitlab-shell/hooks/* scan the current repository and directories of the entire site. However, the directories of the entire site will not be created with a clean installation, and you need to create them yourself.
mkdir -p <XXX>/gitlab-shell/hooks/pre-receive.d # or update.d or post-receive.d chown git:git <XXX>/gitlab-shell/hooks/pre-receive.d
Bolke de bruin
source share