Gitosis配置:
[gitosis]
loglevel = DEBUG
[group gitosis-admin]
writable = gitosis-admin
members = root.server
[group testgroup]
writable = testproj1
members = Anastasia@ANASTASIA-PC
我的日志,当我调用clone命令时:
myuser@mydomain /d/www
$ git clone git@5.9.30.109:repositories/testproj1
Cloning into 'testproj1'...
DEBUG:gitosis.serve.main:Got command "git-upload-pack 'repositories/testproj1'"
DEBUG:gitosis.access.haveAccess:Access check for 'myuser@mydomain' as 'wr
itable' on 'repositories/testproj1'...
DEBUG:gitosis.group.getMembership:found 'myuser@mydomain' in 'testgroup'
DEBUG:gitosis.access.haveAccess:Access check for 'myuser@mydomain' as 'wr
iteable' on 'repositories/testproj1'...
DEBUG:gitosis.group.getMembership:found 'myuser@mydomain' in 'testgroup'
DEBUG:gitosis.access.haveAccess:Access check for 'myuser@mydomain' as 're
adonly' on 'repositories/testproj1'...
DEBUG:gitosis.group.getMembership:found 'myuser@mydomain' in 'testgroup'
ERROR:gitosis.serve.main:Repository read access denied
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Whyyyy? :(
我该如何发布。
我已经更改了更新后的权利。
答案 0 :(得分:0)
当usuallly
的ssh密钥未正确添加到myuser
repo的keydir
文件夹时,会出现此错误gitosis-admin
:
myuser.pub
' (如this answer)另一个可以链接到gitosis.conf
格式问题(如in this comment)
无论哪种方式,gitolite比gitosis更容易维护和更新(参见" How do programs like gitolite work?")。