以下命令集正常工作
$ mkdir carboncake
$ cd carboncake
$ git init
$ git remote add origin gitosis@myserver.net:repositories/carboncake.git
$ git pull
但是当我尝试以其他用户的身份拉动时,
$ mkdir carboncake
$ cd carboncake
$ git init
$ git remote add origin mithun@myserver.net:repositories/carboncake.git
$ git pull
我收到以下错误
fatal: 'repositories/carboncake.git' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
我的gitosis.conf
包含
[gitosis]
[group team]
writable = sweepshots
members = git_id_rsa
[group gitosis-admin]
writable = gitosis-admin
members = git_id_rsa
[repo carboncake]
description = A brand new app by Mithun.
owner = Mithun P
[group carboncake]
writable = carboncake
members = mithun @core
和keydir
包含
git_id_rsa.pub KEY-----.pub mithun.pub mithun-rsa-key-20110427.pub
并且用户的.ssh
目录包含
mithun@testserver:~$ ls .ssh/
id_rsa id_rsa.pub mithun_rsa mithun_rsa.pub
- 更新
我也试过$ git remote add origin mithun@myserver.net:carboncake.git
,但同样的错误。
实际上 carboncake.git 位于/srv/gitosis/repositories/carboncake.git