1

我一直在测试 git/Gerrit 集成并设置了一个镜像远程存储库的测试存储库。当我在 GERRIT_SITE/git 目录中克隆存储库时,我执行了以下命令以确保它镜像了远程存储库:

git clone --mirror REPO_URL

我检查了裸存储库中的配置文件:

[core]
    repositoryformatversion = 0
    filemode = true
    bare = true
[remote "origin"]
    fetch = +refs/*:refs/*
    mirror = true
    url = ssh://git@myserver/testing.git

我能够在 Gerrit 中合并更改,并且分支显示为“master”。但是,当我尝试从另一个工作站上的远程存储库的主分支中提取最新更改时,它会显示“已经是最新的”。是否必须进行任何其他配置以确保将 Gerrit 中的更改推送到远程存储库?

4

1 回答 1

1

Gerrit does not support working with an upstream master currently. Gerrit is the master. It supports replication, so that merged changes can be pushed to other servers for backup or mirroring purposes. However, if other changes are made to the remote repository, replication will fail.

于 2013-02-07T21:05:29.977 回答