1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-07-04 16:30:12 +02:00

Merge branch 'fix_update' into 'master'

Don't fail fdroid update on empty repository

See merge request fdroid/fdroidserver!990
This commit is contained in:
Hans-Christoph Steiner 2021-08-05 16:18:22 +00:00
commit c4d3e075cb

View File

@ -892,7 +892,10 @@ def write_status_json(output, pretty=False, name=None):
def get_head_commit_id(git_repo):
"""Get git commit ID for HEAD as a str."""
return git_repo.head.commit.hexsha
try:
return git_repo.head.commit.hexsha
except ValueError:
return "None"
def setup_vcs(app):