mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-10-03 17:50:11 +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:
commit
c4d3e075cb
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user