ディレクトリにいくつかの git ベア リポジトリがあります/home/git/repositories
。これらのリポジトリにアクセスするには、serve git プロトコルを
使用します。
たとえば、裸の git リポジトリです。git-daemon-run
/home/git/repositories/root/spider.git
コマンドps -ef | grep git
結果です。
120 9638 1062 0 10:44 ? 00:00:00 /usr/local/libexec/git-core/git-daemon --verbose --reuseaddr --base-path=/home/git/repositories --export-all --max-connections=64 -- /home/git/repositories
実行するとgit clone git://hostname/root/spider.git
、次のようになります。
Cloning into 'spider'...
fatal: remote error: access denied or repository not exported: /root/spider.git
syslog を確認すると、次の/var/log/git-daemon/current
ようになります。
2013-03-08_02:56:02.42145 [9698] Connection from 127.0.0.1:60080
2013-03-08_02:56:02.42149 [9698] Extended attributes (22 bytes) exist <host=hostname>
2013-03-08_02:56:02.42186 [9698] Request upload-pack for '/root/spider.git'
2013-03-08_02:56:02.42189 [9698] '/home/git/repositories/root/spider.git' does not appear to be a git repository
2013-03-08_02:56:02.42221 [9638] [9698] Disconnected (with error)