fetching from gerrit.ovirt.org

Hi guys, Stupid question: any reason gerrit.ovirt.org only has a button for fetchs via git and not http(s)? Not that I can't replace git:// with http:// in my command line, but it's kinda annoying. Thanks, Allon

afaik it's a definition in gerrit.config file: should be: [gerrit] basePath = git canonicalWebUrl = https://gerrit.ovirt.org canonicalGitUrl = git://gerrit.ovirt.org e. ----- Original Message -----
From: "Allon Mureinik" <amureini@redhat.com> To: "infra" <infra@ovirt.org> Sent: Sunday, February 10, 2013 11:58:07 AM Subject: fetching from gerrit.ovirt.org
Hi guys,
Stupid question: any reason gerrit.ovirt.org only has a button for fetchs via git and not http(s)? Not that I can't replace git:// with http:// in my command line, but it's kinda annoying.
Thanks, Allon _______________________________________________ Infra mailing list Infra@ovirt.org http://lists.ovirt.org/mailman/listinfo/infra

On 11/02/2013 12:17, Eyal Edri wrote:
afaik it's a definition in gerrit.config file: should be:
[gerrit] basePath = git canonicalWebUrl = https://gerrit.ovirt.org canonicalGitUrl = git://gerrit.ovirt.org
e.
----- Original Message -----
From: "Allon Mureinik" <amureini@redhat.com> To: "infra" <infra@ovirt.org> Sent: Sunday, February 10, 2013 11:58:07 AM Subject: fetching from gerrit.ovirt.org
Hi guys,
Stupid question: any reason gerrit.ovirt.org only has a button for fetchs via git and not http(s)? Not that I can't replace git:// with http:// in my command line, but it's kinda annoying.
Thanks, Allon _______________________________________________ Infra mailing list Infra@ovirt.org http://lists.ovirt.org/mailman/listinfo/infra
this is what we currently have... [gerrit] basePath = /usr/local/src/git canonicalWebUrl = http://gerrit.ovirt.org canonicalGitUrl = git://gerrit.ovirt.org

On Sun, Feb 10, 2013 at 04:58:07AM -0500, Allon Mureinik wrote:
Stupid question: any reason gerrit.ovirt.org only has a button for fetchs via git and not http(s)? Not that I can't replace git:// with http:// in my command line, but it's kinda annoying.
I'm not that familiar with gerrit so I can only provide a workaround. You can tell git to always use http://gerrit.ovirt.org insteadof git://gerrit.ovirt.org. Add the following to your git config: [url "http://gerrit.ovirt.org:"] insteadOf = "git://gerrit.ovirt.org" See http://blog.mraw.org/2011/05/24/Git_tip_of_the_day_insteadOf/ Personally I've taken this a step further (but that doesn't work with the copy paste URLs from gerrit): [url "git://gerrit.ovirt.org/"] insteadOf = "ovirt:" [url "gerrit.ovirt.org:"] pushInsteadOf = "ovirt:" Then you can do things like git clone ovirt:vdsm and it will use git://gerrit.ovirt.org/vdsm to fetch/pull and gerrit.ovirt.org:vdsm to push. Perhaps a better alternative is to use git-review -d to retrieve changes: $ git review -d 11852 Downloading refs/changes/52/11852/3 from gerrit into review/yeela_kaplan/11852 Switched to branch 'review/yeela_kaplan/11852' See https://labsconsole.wikimedia.org/wiki/Git-review#Downloading_a_change_with_...
participants (4)
-
Allon Mureinik
-
Ewoud Kohl van Wijngaarden
-
Eyal Edri
-
Itamar Heim