I have taken over a project where the previous admin provided no help, no documentation and no handover…I am trying to clone the gitolite-admin repo so that I can add myself as a user.
The issue is that when I run
git clone gitolite@repo1:gitolite-admin.git
I receive the error
R access for gitolite-admin DENIED to macbook
(Or there may be no repository at the given path. Did you spell it correctly?)
fatal: The remote end hung up unexpectedly
With the server’s conf/gitolit.conf file containing
repo gitolite-admin
RW+ = macbook
My repositories contains gitolite-admin.git amongst others, and I successfully ran
git clone gitolite@repo1:wp_of_travel
When I run
ssh gitolite@repo1 info
I am returned a number of projects, but gitolite-admin is not listed there.
Is my situation hopeless or am I missing something where I can reconstruct the repo and clone it again?
I do have full control over the server if that helps…
Any help or advice on this matter is more than welcome.
Thank you
This is normal: if macbook isn’t registered in that project in the
gitolite.confof the repo (not your own localgitolite.conf, but the one currently stored in thegitolite-admin.gitrepo), you won’t see it listed.If you have access to the server, you can clone the
gitolite-admin.gitlocally (file protocol, no ssh here), add your name (after your public ssh key), push back, and rungitolite setup(if you are using gitolite v3), in order for gitolite to update the~/.ssh/authorized_keysfiles.With a gitolite V2, the page
gl-admin-push: bypassing gitolite for the gitolite-admin repo is helpful:The OP edwardgd confirms in the comments: