2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 21:15:41 +00:00

check git version and safe for runtime

This commit is contained in:
Matthias
2022-02-28 00:17:21 +01:00
parent c882d1f89b
commit bae290d605
3 changed files with 25 additions and 0 deletions

View File

@ -10,6 +10,7 @@ from maintenance_mode.core import set_maintenance_mode
from InvenTree.ready import isImportingData
from plugin import registry
from plugin.helpers import check_git_version
logger = logging.getLogger('inventree')
@ -34,3 +35,6 @@ class PluginAppConfig(AppConfig):
# drop out of maintenance
# makes sure we did not have an error in reloading and maintenance is still active
set_maintenance_mode(False)
# check git version
registry.git_is_modern = check_git_version()