Migrating git server to a new host and setup
Baptiste Jonglez
baptiste at bitsofnetworks.org
Tue Feb 24 15:07:04 PST 2026
On 24-02-26, Thibaut wrote:
> Hi,
>
> > Le 24 févr. 2026 à 08:54, Baptiste Jonglez <baptiste at bitsofnetworks.org> a écrit :
>
> [...]
>
> > We tried to keep compatibility with existing gitweb URLs through redirects
> > (except the magic git.openwrt.org/<commit_hash> since it iterates on all
> > repositories, which is quite costly).
>
> Why not keep this only for the main repo then, instead of iterating?
> I suspect that’s 99% of use cases of this convenient feature.
Good idea, it's now implemented as a simple redirect in nginx.
Example: https://git.staging.openwrt.org/f27f3e7f233
Fun fact, I discovered the existing magic can also translate SVN-style revisions:
https://git.openwrt.org/r10000
This will no longer work with the new setup, but I doubt it's still used
nowadays...
Baptiste
More information about the openwrt-devel
mailing list