I have been running gitolite for some time and this week set up a second server as a mirror for all of my repositories.
I have the following stanzas in the gitolite.conf file that has been pushed to both servers:
repo data/[0-9]+/..*
C = @developers
RW+ = @developers
R = @all
option mirror.master = oxygen
option mirror.slaves = nitrogen
repo mirror_test
RW+ = @all
option mirror.master = oxygen
option mirror.slaves = nitrogen
I have repos of the names "data/11756/machine11756.git", "data/11756/recorded11756.git", and "data/11779/machine11779.git", over 70 in total.
After setting up mirroring and testing it via the mirror_test repo. I needed to get copies of the repos onto the slave, so I then wrote a script to run "ssh gitolite mirror push nitrogen ". Only nine of these mirror pushes succeeded, the remaining ones returned:
fatal: '/home/git/repositories/data/11756/machine11756.git' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
What is going on?