[U-Boot-Custodians] git access - move to gitlab?
Tom Rini
trini at konsulko.com
Tue Mar 26 11:15:08 UTC 2019
On Tue, Mar 26, 2019 at 11:52:30AM +0100, Wolfgang Denk wrote:
> Dear Tom,
>
> In message <20190325154727.GJ18421 at bill-the-cat> you wrote:
> >
> > > Yes, I'm aware of this. I know that redirecting the URL for cloning
> > > works, so you will still be able to do - say -
> > >
> > > git clone git://git.denx.de/u-boot-ti.git
> > >
> > > but I don't think your example will work out of the box.
> > >
> > > But then, even if we upgrade the git server and switch from the old
> > > gitweg to cgit (for example) this would break.
> > >
> > > I'm not even sure we should try to invest the efforts for such a
> > > (basically undocumented ?) API.
> >
> > We're getting out of my general area of expertise but shouldn't you be
> > able to tell ngix or similar to rewrite requests for ?p=REPO;... into
> > whatever the form the gitlab view is?
>
> With sufficient effort this is most probably possible, but then -
> how complete does such suppot have to be? There are several
> parameters ("p=", "a=", "f=", "h=", "hb=", "s=", "sr=", "st="...).
> If we try to support all parameters with all options this becomes
> more than some simple address rewriting.
My concern is that we have links in ML archives as well as stack
overflow and similar pointing to git locations. While on the one hand,
I think covering all of those parameters is a single regex, it'll get
complex and maybe long term unmaintainable. So, some examples I think
we really must have still work would be:
https://git.denx.de/?p=u-boot.git;a=blob;f=board/nokia/rx51/rx51.c;h=76f6ede38c62d8b9811c717b59762b5d584fb49c;hb=HEAD#l71
https://git.denx.de/?p=u-boot.git;a=tree
https://git.denx.de/?p=u-boot.git;a=blobdiff;f=include/configs/nokia_rx51.h;h=c9901e52510110ea34bd1ac6bcdc2a90a9bada8d;hp=6312ed737c7104b331c11c8e88808fcc10654718;hb=278b90ce786f73faf29aa522d5d101e1da006378;hpb=7c8f00e484658c673d32d8422c96cb64bb571063
Perhaps if this ends up being too hard to rewrite is it worth looking at
keeping an r/o copy of gitweb at the state prior to switchover, so old
links still work but for anything new people would need to use a gitlab
link instead?
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot-custodians/attachments/20190326/8eb76d86/attachment.sig>
More information about the U-Boot-Custodians
mailing list