mirror of
https://github.com/Mic92/nix-update.git
synced 2024-11-03 21:04:49 +03:00
Merge pull request #243 from FedericoSchonborn/fix-gitlab-branch
Fix fetching GitLab snapshots on repos with no tags
This commit is contained in:
commit
220d547109
@ -52,7 +52,10 @@ def fetch_gitlab_snapshots(url: ParseResult, branch: str) -> list[Version]:
|
||||
resp = urllib.request.urlopen(gitlab_url)
|
||||
commits = json.load(resp)
|
||||
|
||||
try:
|
||||
versions = fetch_gitlab_versions(url)
|
||||
except VersionError:
|
||||
versions = []
|
||||
latest_version = versions[0].number if versions else "0"
|
||||
|
||||
for commit in commits:
|
||||
|
Loading…
Reference in New Issue
Block a user