
한 Gerrit에서 다른 Gerrit로 하나의 프로젝트/저장소를 복제하고 싶습니다. 내 복제 구성:
[remote "gerrit3"]
url = 192.168.1.106:29418/${name}
adminUrl = gerrit+ssh://192.168.1.106/
push = refs/*:refs/*
replicatePermissions = true
replicateHiddenProjects = true
mirror = false
projects = tests/test1
replicationDelay = 0
createMissingRepositories = true
복제를 트리거한 후 복제 로그에 다음 메시지가 표시됩니다.
[2019-07-25 14:11:00,249] [] scheduling replication tests/test1:..all.. => 192.168.1.106:29418/tests/test1
[2019-07-25 14:11:00,251] [] scheduled tests/test1:..all.. => [f208c682] push 192.168.1.106:29418/tests/test1 to run after 0s
[2019-07-25 14:11:00,253] [f208c682] Replication to 192.168.1.106:29418/tests/test1 started...
[2019-07-25 14:11:00,463] [f208c682] Missing repository created; retry replication to 192.168.1.106:29418/tests/test1
[2019-07-25 14:12:00,465] [f208c682] Replication to 192.168.1.106:29418/tests/test1 started...
[2019-07-25 14:12:00,689] [f208c682] Missing repository created; retry replication to 192.168.1.106:29418/tests/test1
[2019-07-25 14:13:00,690] [f208c682] Replication to 192.168.1.106:29418/tests/test1 started...
[2019-07-25 14:13:00,996] [f208c682] Missing repository created; retry replication to 192.168.1.106:29418/tests/test1
마지막 두 줄이 계속 반복됩니다. 원격 저장소의 존재 여부에 관계없이 소스 Gerrit가 원격 저장소를 볼 수 없는 것 같습니다. 그렇지 않은 경우 빈 저장소가 제대로 생성되지만 이 후에도 Gerrit는 여전히 이를 볼 수 없습니다.
답변1
문제가 발생했습니다 url
. 문서 예제에는 프로토콜이 지정되지 않은 URL이 표시되지만 매개변수가 URL 구문 url
과 호환된다는 점도 언급되어 있습니다. 줄을 다음으로 git push
변경한 후 url
:
url = ssh://[email protected]:29418/${name}
문제가 사라졌습니다. Gerrit는 원격 저장소를 보기 시작합니다.