Change hostname references from gitea.opensuse.org to src.opensuse.org
This commit is contained in:
parent
12001b1640
commit
9e80a64fe0
@ -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):
|
||||
|
@ -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,
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user