The review should point to your http port, which will provide repo with the proper ssh_info.
Try : review=http://<your-server>:8080
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
As you discovered, review cannot be an ssh:// URL.
> ===== REVIEW in HTTPS
> <remote name="gerrit_it"
> fetch="ssh://gerrit.it.int:29418/"
> review="https://gerrit.it.int/"
...
> (https://gerrit.it.int/: <urlopen error [Errno 1] _ssl.c:480:
> error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake
> failure>)
And as you just discovered, the client doesn't have the user's SSL
certificate. :-(
> I really don't understand.
> In the manifest format doc I read :
> "Attribute `review`: Hostname of the Gerrit server where reviews
> are uploaded to by `repo upload`. This attribute is optional;
> if not specified then `repo upload` will not function."
>
> So, attribute is optional, but if you don't have it , it will not
> function... well
Its optional in that the rest of repo works correctly without it. You
can run repo init and repo sync for example. But currently upload is
designed to work only with Gerrit Code Review, as that is the only
review system it understands.
> I also read : "The review attribute should point to the HTTP URL of
> your Gerrit", So why it's needed by repo for doing a git push to
> gerrit?
This is a long history and its basically all my fault. repo upload is
asking over HTTP for $review/ssh_info so it can get the SSH hostname
and port that it should direct git push to for the actual upload. We
did this because eons ago Gerrit Code Review was on Google AppEngine
and only used HTTP for the initial upload. When we upgrade to Gerrit
2.0 and had SSH available, we didn't want to push new manifests right
away so we added a way for repo upload to "upgrade" itself to the SSH
format, and then never made review accept ssh:// syntax.
Is there some way you can modify your HTTP server configuration to
allow just /ssh_info to connect anonymously? This is the only URL
upload is asking for, and its reasonably safe to expose anonymously.
The content returned is just "hostname port".