mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-14 15:02:51 +03:00
Don't fail fdroid update on empty repository
Steps to reproduce: $ git init $ fdroid update --create-key
This commit is contained in:
parent
bbda73f6c7
commit
cacbe88b8c
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):
|
def get_head_commit_id(git_repo):
|
||||||
"""Get git commit ID for HEAD as a str."""
|
"""Get git commit ID for HEAD as a str."""
|
||||||
|
try:
|
||||||
return git_repo.head.commit.hexsha
|
return git_repo.head.commit.hexsha
|
||||||
|
except ValueError:
|
||||||
|
return "None"
|
||||||
|
|
||||||
|
|
||||||
def setup_vcs(app):
|
def setup_vcs(app):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue