mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-04 08:04:51 -04:00
Fix Synapse git info missing in version strings (#12973)
This commit is contained in:
parent
a7e506ddee
commit
f30bcbd84a
15 changed files with 36 additions and 38 deletions
|
@ -19,7 +19,6 @@ import sys
|
|||
from typing import cast
|
||||
|
||||
import yaml
|
||||
from matrix_common.versionstring import get_distribution_version_string
|
||||
|
||||
from twisted.internet import defer, reactor as reactor_
|
||||
|
||||
|
@ -28,6 +27,7 @@ from synapse.metrics.background_process_metrics import run_as_background_process
|
|||
from synapse.server import HomeServer
|
||||
from synapse.storage import DataStore
|
||||
from synapse.types import ISynapseReactor
|
||||
from synapse.util import SYNAPSE_VERSION
|
||||
|
||||
# Cast safety: Twisted does some naughty magic which replaces the
|
||||
# twisted.internet.reactor module with a Reactor instance at runtime.
|
||||
|
@ -43,8 +43,7 @@ class MockHomeserver(HomeServer):
|
|||
hostname=config.server.server_name,
|
||||
config=config,
|
||||
reactor=reactor,
|
||||
version_string="Synapse/"
|
||||
+ get_distribution_version_string("matrix-synapse"),
|
||||
version_string=f"Synapse/{SYNAPSE_VERSION}",
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue