
我安裝了 gitolite,作為管理員,一切正常。但是當我想新增用戶時,新用戶無法連接到伺服器。在查看文件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 自動將新使用者新增至授權金鑰中的問題。
答案1
這部分 ”不常見的錯誤” 給出一些可能的原因。
(情況1)您
repo.git
從另一個g3
網站(或g2
其他GL_BIG_CONFIG
網站)複製了一個裸儲存庫(「」)。
然後,您將變更推送到「gitolite.conf
」或執行某些伺服器端命令,而不將儲存庫新增至conf。反過來,您從“”中刪除了“repo”
gitolite.conf
,但沒有刪除repo.git
磁碟上實際的“”。(案例2)如果您更改了類似的內容,也可能會發生這種情況
repo foo
...<some rules>...
對此:
@grp = foo
repo @grp
...<some rules>...
此外,即使跑步也
gitolite setup
無法解決這個問題。
但這一切都是為了:
根本原因是我不想停用或破壞的內部一致性檢查。
它的存在是有原因的,我更喜歡一個人類可以調查的警告。如果您確定原因是上述兩個原因之一,則可以在情況 1 中將儲存庫新增至 conf 檔案中,或
repo.git
在情況 2 中手動從目錄中刪除 gl-conf 檔案。不管怎樣,之後運行 gitolite 設定以確保一切都處於良好狀態。
在這種情況下,解決方案是完全“重置”,因為OP 碰撞巴士提及在評論中:
git
我通過從系統中完全刪除“ ”用戶並按照教程形式解決了問題OS X Lion 上的 Git“伺服器”。