警告:无法访问'/home/gitolite/.config/git/attributes':权限被拒绝

警告:无法访问'/home/gitolite/.config/git/attributes':权限被拒绝

我已完成对 git-daemon 的设置,以便对我的一些 git 存储库进行读取访问,但是,当客户端执行拉取操作时,它会得到以下信息:

remote: warning: unable to access '/home/gitolite/.config/git/attributes': Permission denied
remote: Enumerating objects: 18, done.
remote: Counting objects: 100% (18/18), done.
remote: Compressing objects: 100% (17/17), done.
remote: Total 18 (delta 3), reused 0 (delta 0)
Receiving objects: 100% (18/18), 4.68 KiB | 2.34 MiB/s, done.
Resolving deltas: 100% (3/3), done.

一切似乎都运行正常,但我无法弄清楚警告是什么以及如何消除它。git-daemon 在 gitolite 用户下运行。该用户确实有主目录,并且文件存在且可读。

$ sudo -u gitolite -- ls -l /home/gitolite/.config/git/attributes
-rw------- 1 gitolite gitolite 0 Mar 16 22:42 /home/gitolite/.config/git/attributes
$ sudo -u gitolite -- cat /home/gitolite/.config/git/attributes
+   $ ps u 13243
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
gitolite 13243  0.0  0.0   9864   980 ?        Ss   22:42   0:00 /usr/lib/git-core/git-daemon -

谁能告诉我我做错了什么?

相关内容