Skip to content

import rake task fails to setup hooks

10.3.3-ce.0, running rake task, repo created and visible in ui. but noticed the hooks were not setup by gitlab. they left the way the source repo was present.

it should be replaced with symlinks.

# cd /path/to/imported/git-repo.git
# ls -ld hooks hooks/*
drwxrwxr-x 2 git git  25 Jan  6 22:05 hooks
-rwxrwxr-x 1 git git 536 Apr 18  2016 hooks/post-rewrite

having hooks missing (symlinked to gitlab-shell), leads to gitlab not being able to "see" new pushes...

ps: i tried to search for existing bugreport with %10.3 milestone and ~import label and found nothing, was surprised nobody has reported this:

https://gitlab.com/groups/gitlab-org/-/issues?scope=all&utf8=%E2%9C%93&state=opened&milestone_title=10.3&label_name[]=import

Edited by Elan Ruusamäe