gitolite mac不会将新用户添加到authorized_keys

我安装了gitolite,作为pipe理员,我的每一件事情都能正常工作。 但是当我想添加一个新用户时,新用户无法连接到服务器。 在查看文件authorized_keys后,我看到新用户没有添加到文件中。 在新的公钥提交期间,我得到了一些工作:

WARNING: split conf not set, gl-conf present for 'gitolite-admin' Counting objects: 6, done. Delta compression using up to 8 threads. Compressing objects: 100% (4/4), done. Writing objects: 100% (4/4), 882 bytes, done. Total 4 (delta 1), reused 0 (delta 0) remote: WARNING: split conf not set, gl-conf present for 'gitolite-admin' remote: WARNING: ?? @staff christianwaldmann markwelch remote: sh: find: command not found remote: sh: find: command not found remote: sh: sort: command not found remote: sh: find: command not found remote: /usr/local/bin/triggers/post-compile/update-gitweb-access-list: line 26: cut: command not found remote: /usr/local/bin/triggers/post-compile/update-gitweb-access-list: line 23: grep: command not found remote: /usr/local/bin/triggers/post-compile/update-gitweb-access-list: line 26: sort: command not found remote: /usr/local/bin/triggers/post-compile/update-gitweb-access-list: line 26: sed: command not found remote: sh: find: command not found remote: sh: find: command not found 

我怎样才能解决它,gitolite自动添加新用户到authorized_keys。

“ 不常见的错误 ”一节给出了一些可能的原因。

案例1 ),您从另一个g3站点(或g2GL_BIG_CONFIG )复制一个裸回购(“ repo.git ”)。
然后你把一个改变推到“ gitolite.conf ”或运行某些服务器端命令,而不用把repo加到conf。

相反, 你从“ gitolite.conf ”中删除了“repo”,但并没有删除磁盘上的实际“ repo.git

情况2 )如果你改变了这样的情况,也会发生这种情况

 repo foo ...<some rules>... 

对此:

 @grp = foo repo @grp ...<some rules>... 

另外,即使运行gitolite setup也不能解决这个问题。

但是一切都完成了:

根本原因是内部一致性检查,我不希望禁用或颠覆。
这是有原因的,我宁愿有一个人可以调查的警告。

如果您确定原因是上述两种情况之一,则可以将情况1中的回购协议添加到conf文件,或者在情况2中手动从repo.git目录中移除gl-conf文件。

无论哪种方式,事后运行gitolite安装,以确保事情状况良好。


在这种情况下,解决scheme是一个完整的“重置”,因为OP崩溃总线 在评论中提到:

我通过从系统中完全删除“ git ”用户并按照OS X Lion上的Git“Server”教程解决了这个问题。