Remote: hooks/pre-receive:10: undefined method `require_relative' for main:Object (NoMethodError)

I’m trying to do push with https:
git push -u origin master
Username for ‘https://XXXXXXXXXXX’:
Password for ‘https://XXXXXXXXXXX’:
Counting objects: 3, done.
Writing objects: 100% (3/3), 218 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
remote: hooks/pre-receive:10: undefined method `require_relative’ for main:Object (NoMethodError)
To https://XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/test.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to ‘https://XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/test.git
My versions:

System information
System:
Current User: git
Using RVM: no
Ruby Version: 2.1.6p336
Gem Version: 2.2.3
Bundler Version:1.11.2
Rake Version: 10.4.2
Sidekiq Version:3.3.0

GitLab information
Version: 7.14.3
Revision: d321305c
Directory: /home/git/gitlab
DB Adapter: mysql2
URL: https://XXXXXXXXXXX
HTTP Clone URL: https://XXXXXXXXXXX
SSH Clone URL: XXXXXXXXXXX
Using LDAP: yes
Using Omniauth: no

GitLab Shell
Version: 2.6.5
Repositories: /home/git/repositories/
Hooks: /home/git/gitlab-shell/hooks/
Git: /usr/bin/git

this bug? I saw here a similar problem, but nobody has decided to :frowning: