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")
|
logging.warning("Not adding a remote due to missing $GITEA_TOKEN")
|
||||||
return
|
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(
|
response = requests.post(
|
||||||
url,
|
url,
|
||||||
data={"name": repo_name},
|
data={"name": repo_name},
|
||||||
@ -212,7 +212,7 @@ class Git:
|
|||||||
# 201 Created
|
# 201 Created
|
||||||
if response.status_code not in (201, 409):
|
if response.status_code not in (201, 409):
|
||||||
print(response.data)
|
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)
|
self.repo.remotes.create("origin", url)
|
||||||
|
|
||||||
def push(self, force=False):
|
def push(self, force=False):
|
||||||
|
@ -83,7 +83,7 @@ class LFSOid:
|
|||||||
self.register()
|
self.register()
|
||||||
|
|
||||||
def check(self):
|
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(
|
response = requests.get(
|
||||||
url,
|
url,
|
||||||
timeout=10,
|
timeout=10,
|
||||||
@ -127,7 +127,7 @@ class LFSOid:
|
|||||||
"size": self.size,
|
"size": self.size,
|
||||||
}
|
}
|
||||||
|
|
||||||
url = "http://gitea.opensuse.org:9999/register"
|
url = "http://src.opensuse.org:9999/register"
|
||||||
response = requests.post(
|
response = requests.post(
|
||||||
url,
|
url,
|
||||||
json=data,
|
json=data,
|
||||||
|
@ -114,7 +114,7 @@ class TreeBuilder:
|
|||||||
candidates.append(node)
|
candidates.append(node)
|
||||||
if node.merged_into:
|
if node.merged_into:
|
||||||
# we can't have candidates that are crossing previous merges
|
# 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 = []
|
candidates = []
|
||||||
node = node.parent
|
node = node.parent
|
||||||
if candidates:
|
if candidates:
|
||||||
|
Loading…
Reference in New Issue
Block a user