jupyterhub / binderhub

Run your code in the cloud, with technology so advanced, it feels like magic!
https://binderhub.readthedocs.io
BSD 3-Clause "New" or "Revised" License
2.57k stars 390 forks source link

keep old default branch links working #1571

Closed minrk closed 1 year ago

minrk commented 2 years ago

If 'master' or 'main' fail to resolve, try again with 'HEAD' after a delay.

this keeps outdated links to renamed default branches working for the big master->main migration

closes #1570

minrk commented 2 years ago

This is the simpler proposal in #1570, without the browser redirect, which I think has more moving parts (need to compute new URL somewhere, handle communicating updated spec from server to browser, etc.)

minrk commented 1 year ago

Is the idea to only do this for GitHub but not GitLab because GitHub is where problems are most likely to occur?

That's what we've been doing, but we can probably expand it to other providers, too, if we want.