Merge ~cjwatson/launchpad:invent-kde-org-blobs into launchpad:master

Proposed by Colin Watson
Status: Merged
Approved by: Colin Watson
Approved revision: 58ac9df4537f6349a3e0f21bdc67ff15e07c5089
Merge reported by: Otto Co-Pilot
Merged at revision: not available
Proposed branch: ~cjwatson/launchpad:invent-kde-org-blobs
Merge into: launchpad:master
Diff against target: 18 lines (+3/-0)
1 file modified
lib/lp/code/model/gitref.py (+3/-0)
Reviewer Review Type Date Requested Status
Ines Almeida Approve
Review via email: mp+455048@code.launchpad.net

Commit message

Support fetching blobs from repositories on invent.kde.org

To post a comment you must log in.
Revision history for this message
Ines Almeida (ines-almeida) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/lib/lp/code/model/gitref.py b/lib/lp/code/model/gitref.py
2index 240e604..9abe5d1 100644
3--- a/lib/lp/code/model/gitref.py
4+++ b/lib/lp/code/model/gitref.py
5@@ -968,11 +968,14 @@ def _fetch_blob_from_gitlab(repository_url, ref_path, filename):
6
7
8 # Some well-known GitLab instances. This is certainly not comprehensive.
9+# XXX cjwatson 2023-11-02: This should probably use a feature rule so that
10+# it can be extended more easily.
11 _gitlab_hostnames = {
12 "gitlab.com",
13 "gitlab.eclipse.org",
14 "gitlab.freedesktop.org",
15 "gitlab.gnome.org",
16+ "invent.kde.org",
17 "salsa.debian.org",
18 }
19

Subscribers

People subscribed via source and target branches

to status/vote changes: