我安装并配置了 GitLab。我将我的公钥添加到我的帐户中,然后添加了一个项目。不幸的是,该项目似乎不存在于 Gitolite 中,我的密钥似乎也没有被添加(不在 .gitolite/keydir 或 .ssh/authorized_keys 中)
GitLab 没有抱怨,项目创建得很好。根据 gitlab:app:status,权限是正确的,但它说项目缺少 post_receive 文件。这并不奇怪,因为 /home/git/repositories 中没有项目
gitlab@server:~$ bundle exec rake gitlab:app:status RAILS_ENV=production
Starting diagnostics
config/database.yml............exists
config/gitlab.yml............exists
/home/git/repositories/............exists
/home/git/repositories/ is writable?............YES
remote: Counting objects: 6, done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 6 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (6/6), done.
Can clone gitolite-admin?............YES
UMASK for .gitolite.rc is 0007? ............YES
/home/git/.gitolite/hooks/common/post-receive exists? ............YES
Validating projects repositories:
Herp.....post-receive file missing
rake aborted!
unexpected return
Tasks: TOP => gitlab:app:status
(See full trace by running task with --trace)
编辑: gitolite-admin repo 确实存在。我能够克隆 gitolite-admin 存储库并在该目录中写入:
gitlab@server:~$ git clone git@localhost:gitolite-admin.git /tmp/gitolite-admin
Cloning into '/tmp/gitolite-admin'...
remote: Counting objects: 6, done.
remote: Compressing objects: 100% (4/4), done.
Receiving objects: 100% (6/6), 751 bytes, done.
remote: Total 6 (delta 0), reused 0 (delta 0)
gitlab@server:~$ mkdir /home/git/repositories/test
gitlab@server:~$ touch /home/git/repositories/test/asdf
我不知所措,因此 GitLab 无法使用。我该怎么办?我不知道从哪里开始寻找。
提前致谢。