mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +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 plugin import registry
|
||||
from plugin.helpers import check_git_version
|
||||
from plugin.helpers import check_git_version, log_error
|
||||
|
||||
|
||||
logger = logging.getLogger('inventree')
|
||||
@ -38,3 +38,5 @@ class PluginAppConfig(AppConfig):
|
||||
|
||||
# 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…
Reference in New Issue
Block a user