mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-30 20:46:47 +00:00
write error if too old git
This commit is contained in:
parent
ca8df60d00
commit
f3f010c4be
@ -10,7 +10,7 @@ from maintenance_mode.core import set_maintenance_mode
|
|||||||
|
|
||||||
from InvenTree.ready import isImportingData
|
from InvenTree.ready import isImportingData
|
||||||
from plugin import registry
|
from plugin import registry
|
||||||
from plugin.helpers import check_git_version
|
from plugin.helpers import check_git_version, log_error
|
||||||
|
|
||||||
|
|
||||||
logger = logging.getLogger('inventree')
|
logger = logging.getLogger('inventree')
|
||||||
@ -38,3 +38,5 @@ class PluginAppConfig(AppConfig):
|
|||||||
|
|
||||||
# check git version
|
# check git version
|
||||||
registry.git_is_modern = check_git_version()
|
registry.git_is_modern = check_git_version()
|
||||||
|
if not registry.git_is_modern:
|
||||||
|
log_error('Your enviroment has an outdated git version. This prevents InvenTree from loading plugin details.', 'load')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user