The accepted answer is a good one if you you're just setting up gitolite, but if you're a new user to an existing installation, you'll get the same error as the one in the question unless you've been added as an administrator.
If you have shell access to the server gitolite lives on, login and switch to the user that gitolite users - usually called git
.
Once logged into the gitolite user, go to the conf file and give yourself RW+ rights on the gitolite-admin repo. Gitolite conf is usually in /home/git/.gitolite/conf/gitolite.conf
(assuming username is git
). For a gitolite user named Peaches
, grant the permissions thusly:
repo gitolite-admin
RW+ = OriginalAdmin Peaches
Save the file, and run setup from the command line, still as the gitolite user:
gitolite setup
If you've been setup as a user correctly, you should be able to clone now.
For more on adding users, see the documentation
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…