我正在将我的 gitlab 实例移动到另一台服务器,但我遇到了问题。clone 工作正常,但是 push 抛出错误,我不知道问题出在哪里。在 gitlab 日志中没有什么用处。
git push
Counting objects: 5, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 351 bytes, done.
Total 3 (delta 0), reused 0 (delta 0)
remote: GitLab: You are not allowed to access master!
remote: error: hook declined to update refs/heads/master
To git@server:user/repo.git
! [remote rejected] master -> master (hook declined)
error: failed to push some refs to 'git@server:user/repo.git'
不知道哪里出问题了,稍微改一下配置。以前服务器符号链接到/media/data/git/repositories
现在的回购和卫星是/home/git
符号链接/media/disk/git
但我不认为这是问题所在。
EDIT:// gitlab:check 一切正常 gitlab-shell 检查也正常