mirror of
https://git.pleroma.social/pleroma/relay.git
synced 2024-11-22 06:27:59 +00:00
exclude git hash if unavailable
This commit is contained in:
parent
4847c2bbc0
commit
4fc5d692bf
|
@ -12,9 +12,10 @@ from .processors import run_processor
|
||||||
|
|
||||||
try:
|
try:
|
||||||
commit_label = subprocess.check_output(["git", "rev-parse", "HEAD"]).strip().decode('ascii')
|
commit_label = subprocess.check_output(["git", "rev-parse", "HEAD"]).strip().decode('ascii')
|
||||||
|
version = f'{__version__} {commit_label}'
|
||||||
|
|
||||||
except:
|
except:
|
||||||
commit_label = '???'
|
version = __version__
|
||||||
|
|
||||||
|
|
||||||
async def home(request):
|
async def home(request):
|
||||||
|
@ -169,7 +170,7 @@ async def nodeinfo_2_0(request):
|
||||||
},
|
},
|
||||||
'software': {
|
'software': {
|
||||||
'name': 'activityrelay',
|
'name': 'activityrelay',
|
||||||
'version': f'{__version__} {commit_label}'
|
'version': version
|
||||||
},
|
},
|
||||||
'usage': {
|
'usage': {
|
||||||
'localPosts': 0,
|
'localPosts': 0,
|
||||||
|
|
Loading…
Reference in a new issue