Change hostname references from gitea.opensuse.org to src.opensuse.org

This commit is contained in:
Dirk Müller
2023-06-19 10:59:56 +02:00
parent 12001b1640
commit 9e80a64fe0
3 changed files with 5 additions and 5 deletions

View File

@@ -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):