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_wi...