Hi everyone,
we're currently setting up a large project with many repositories hosted on gerrit.
For a convenient workflow we plan to introduce repo as default tool for our developers.
Unfortunately the setup our centralized gerrit server is a little more sophisticated.
It is available using different URLs in different (company internal + external) networks.
ssh access is only allowed from some networks, while https is possible for everyone.
Problematic workflow (for user without ssh access):
1. repo init -u https://<GERRIT_URL_WITHOUT_SSH>/path/to/repo
2. repo start branch <component>
3. user created patch in <component> branch
4. repo upload
- repo will query https://<GERRIT_URL_WITHOUT_SSH>/ssh_info
- since ssh support in gerrit is enabled, response is "<GERRIT_URL_WITHOUT_SSH> <PORT>"
- repo will use ssh on URL where ssh not not available
- error
From what I see, both, gerrit and repo, work correctly. Unfortunately our setup is currently not supported.
We are interested in solving that issue (that other companies might also have)
and contribute the solution to the upstream code base.
Our proposal:
* add an option to repo, to ignore ssh_info for https URLs.
* could be a setting in "remote"-part of manifest
* or just a flag to "repo upload"
I would be very happy to hear you opinions & suggestions.
Would this something that is interesting to be integrated upstream?
Best regards,
Timo Lotterbach