【发布时间】:2020-01-25 00:56:29
【问题描述】:
我已经运行 gitolite 一段时间了,这周设置了第二台服务器作为我所有存储库的镜像。
我在已推送到两台服务器的 gitolite.conf 文件中有以下节:
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
我有名称为“data/11756/machine11756.git”、“data/11756/recorded11756.git”和“data/11779/machine11779.git”的 repos,总共超过 70 个。
设置镜像并通过 mirror_test 存储库对其进行测试后。我需要将存储库的副本复制到从站上,因此我编写了一个脚本来运行“ssh gitolite mirror push natural”。 这些镜像推送中只有九个成功,其余的返回:
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.
发生了什么事?
【问题讨论】:
-
为了继续前进,我决定手动将 repos 从 master 复制到 slave。完成此操作后,我重新运行了我的脚本(以验证事情),一切似乎都很好。话虽如此,我已经超出了眼前的问题,但希望有人能就可能出了什么问题提出意见,这样我以后如果设置任何额外的从站就不会遇到它。
标签: gitolite