Hi,in gerrit-review.googlesource.com only git operations over HTTPS are enabled.Accordingly, when browsing a repo using the Gitiles plugin, for example [1], the url suggested for the clone command is over HTTPS only.Is there any Gitiles or Gerrit setting to achieve it?It seems like a vanilla Gerrit installation by default displays a git clone over SSH in the Gitiles homepage of the project.I tried playing with the Gitiles setting in the URL section [2] but was unsuccessful.Do you know how to achieve the same behaviour as gerrit-review.googlesource.com?
--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/c3ca3839-1c80-4055-89ff-bb1b059d8fd5n%40googlegroups.com.
Hi,in gerrit-review.googlesource.com only git operations over HTTPS are enabled.Accordingly, when browsing a repo using the Gitiles plugin, for example [1], the url suggested for the clone command is over HTTPS only.Is there any Gitiles or Gerrit setting to achieve it?It seems like a vanilla Gerrit installation by default displays a git clone over SSH in the Gitiles homepage of the project.I tried playing with the Gitiles setting in the URL section [2] but was unsuccessful.Do you know how to achieve the same behaviour as gerrit-review.googlesource.com?Did you remove download.scheme = ssh from gerrit.config ?
Did you disable sshd by setting sshd.listenAdress = off ?
Hi Matthias,On Fri, 10 Mar 2023 at 15:51, Matthias Sohn <matthi...@gmail.com> wrote:Hi,in gerrit-review.googlesource.com only git operations over HTTPS are enabled.Accordingly, when browsing a repo using the Gitiles plugin, for example [1], the url suggested for the clone command is over HTTPS only.Is there any Gitiles or Gerrit setting to achieve it?It seems like a vanilla Gerrit installation by default displays a git clone over SSH in the Gitiles homepage of the project.I tried playing with the Gitiles setting in the URL section [2] but was unsuccessful.Do you know how to achieve the same behaviour as gerrit-review.googlesource.com?Did you remove download.scheme = ssh from gerrit.config ?YesDid you disable sshd by setting sshd.listenAdress = off ?I can't disable this in my case, however, digging further in the code I found this undocumented setting: gerrit.cloneUrlTypeAdding the following in my configuration did the trick:> cat etc/gitiles.config[gerrit]
cloneUrlType = http
I will amend the documentation accordingly.
Thanks .Ponch
Hi!On Friday, March 10, 2023 at 5:24:30 PM UTC+1 Fabio Ponciroli wrote:Hi Matthias,On Fri, 10 Mar 2023 at 15:51, Matthias Sohn <matthi...@gmail.com> wrote:Hi,in gerrit-review.googlesource.com only git operations over HTTPS are enabled.Accordingly, when browsing a repo using the Gitiles plugin, for example [1], the url suggested for the clone command is over HTTPS only.Is there any Gitiles or Gerrit setting to achieve it?It seems like a vanilla Gerrit installation by default displays a git clone over SSH in the Gitiles homepage of the project.I tried playing with the Gitiles setting in the URL section [2] but was unsuccessful.Do you know how to achieve the same behaviour as gerrit-review.googlesource.com?Did you remove download.scheme = ssh from gerrit.config ?YesDid you disable sshd by setting sshd.listenAdress = off ?I can't disable this in my case, however, digging further in the code I found this undocumented setting: gerrit.cloneUrlTypeAdding the following in my configuration did the trick:> cat etc/gitiles.config[gerrit]
cloneUrlType = httpThanks for the tip Fabio! I also wanted to show HTTP URLs instead of SSH ones because for anonymous users HTTP URLs are better than SSH ones (the first one allows everyone to clone the repository without authenticating).I will amend the documentation accordingly.As for the documentation, I see it's already documented in the plugins/gitiles repo: https://gerrit.googlesource.com/plugins/gitiles/+/12e26b3/src/main/resources/+Documentation/config.md.
--Thanks .PonchCheers :-)Thanks,Ponch--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/c3ca3839-1c80-4055-89ff-bb1b059d8fd5n%40googlegroups.com.
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/04e1a5d4-e433-4644-988d-e42deefa6e56n%40googlegroups.com.