Today, during some reorganization of my ‘keydir’, I accidentally locked myself out of RW access on the ‘gitolite-admin’ repository.
Doh!
Here was my general steps for recovery, with gl-admin-push being the secret sauce. These need to be run as the user that gitolite is running as.
- mkdir /tmp/fix-gitolite
- cd /tmp/fix-gitolite
- git clone ~/repositories/gitolite-admin.git
- cd gitolite-admin
- vi conf/gitolite.conf
- … fix stupid oversight …
- gl-admin-push
- cd ~
- rm -fr /tmp/fix-gitolite
And now I can read & write to the gitolite-admin checked out on my workstation.