mirror of
https://github.com/Mic92/nix-update.git
synced 2024-11-03 21:04:49 +03:00
fetch_gitea_snapshots: fix typo and make less expensive
This commit is contained in:
parent
e948a7f797
commit
b03e9dc75a
@ -21,7 +21,7 @@ def fetch_gitea_snapshots(url: ParseResult, branch: str) -> list[Version]:
|
||||
return []
|
||||
|
||||
_, owner, repo, *_ = url.path.split("/")
|
||||
commits_url = f"https://{url.netloc}/api/v1/repos/{owner}/{repo}/commits?sha={branch}&limit=1stat=false"
|
||||
commits_url = f"https://{url.netloc}/api/v1/repos/{owner}/{repo}/commits?sha={branch}&limit=1&stat=false&verification=false&files=false"
|
||||
resp = urlopen(commits_url)
|
||||
commits = json.loads(resp.read())
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user