将gitolite-admin克隆到我的工作站并管理用户和repo,但是在推送时,我遇到了一些错误:
remote: Initialized empty Git repository in /home/git/repositories/fmame.git/
remote: /bin/find: paths must precede expression
remote: Usage: /bin/find [path...] [expression]
remote: /bin/find: paths must precede expression
remote: Usage: /bin/find [path...] [expression]
remote: /bin/find: paths must precede expression
remote: Usage: /bin/find [path...] [expression]
remote: /bin/find: paths must precede expression
remote: Usage: /bin/find [path...] [expression]
remote: /bin/find: paths must precede expression
remote: Usage: /bin/find [path...] [expression]
To git@localhost:gitolite-admin
这是我的步骤:
1 /编辑gitolite.conf:
repo gitolite-admin
RW+ = gitoliteadm
repo testing
RW+ = @all
repo mfame
RW+ = ryoma
2 /将ryoma.pub
放入keydir
目录。
我在cygwin的Windows 7上运行我的工作。
如何修改此设置以便我克隆gitolite-admin repo?
答案 0 :(得分:0)
关注“Gitolite hook doesn't work”,确保您的sshd(在您的gitolite服务器上运行的ssh守护程序)具有正确的PATH
。
那(不正确的PATH
)可能会导致出现“remote: /bin/find: paths must precede expression
”错误消息,因为可能会选择错误的shell。