mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-04 22:40:29 +03: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
1 changed files with 4 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue