From 9e80a64fe0e49f63c4b2650ff89473da0732e644 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dirk=20M=C3=BCller?= Date: Mon, 19 Jun 2023 10:59:56 +0200 Subject: [PATCH] Change hostname references from gitea.opensuse.org to src.opensuse.org --- lib/git.py | 4 ++-- lib/lfs_oid.py | 4 ++-- lib/tree_builder.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/git.py b/lib/git.py index 87cc5af..bd2fd11 100644 --- a/lib/git.py +++ b/lib/git.py @@ -201,7 +201,7 @@ class Git: logging.warning("Not adding a remote due to missing $GITEA_TOKEN") return - url = f"https://gitea.opensuse.org/api/v1/org/{org_name}/repos" + url = f"https://src.opensuse.org/api/v1/org/{org_name}/repos" response = requests.post( url, data={"name": repo_name}, @@ -212,7 +212,7 @@ class Git: # 201 Created if response.status_code not in (201, 409): print(response.data) - url = f"gitea@gitea.opensuse.org:{org_name}/{repo_name}.git" + url = f"gitea@src.opensuse.org:{org_name}/{repo_name}.git" self.repo.remotes.create("origin", url) def push(self, force=False): diff --git a/lib/lfs_oid.py b/lib/lfs_oid.py index c350558..6a3bc64 100644 --- a/lib/lfs_oid.py +++ b/lib/lfs_oid.py @@ -83,7 +83,7 @@ class LFSOid: self.register() def check(self): - url = f"http://gitea.opensuse.org:9999/check/{self.sha256}/{self.size}" + url = f"http://src.opensuse.org:9999/check/{self.sha256}/{self.size}" response = requests.get( url, timeout=10, @@ -127,7 +127,7 @@ class LFSOid: "size": self.size, } - url = "http://gitea.opensuse.org:9999/register" + url = "http://src.opensuse.org:9999/register" response = requests.post( url, json=data, diff --git a/lib/tree_builder.py b/lib/tree_builder.py index 54fc5d1..48bfe5c 100644 --- a/lib/tree_builder.py +++ b/lib/tree_builder.py @@ -114,7 +114,7 @@ class TreeBuilder: candidates.append(node) if node.merged_into: # we can't have candidates that are crossing previous merges - # see https://gitea.opensuse.org/importers/git-importer/issues/14 + # see https://src.opensuse.org/importers/git-importer/issues/14 candidates = [] node = node.parent if candidates: