2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-06 05:30:56 +00:00

[FR] Switch from git to dulwich (#4966)

* [FR] Switch from pure git to dulwich Fixes #4942

* fix lenght

* change length again

* change length again
This commit is contained in:
Matthias Mair
2023-06-05 11:27:46 +02:00
committed by GitHub
parent 2ed7eefa27
commit 58a33c2e67
6 changed files with 40 additions and 82 deletions

View File

@ -7,13 +7,11 @@ The main code for plugin special sauce is in the plugin registry in `InvenTree/p
import logging
from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
from maintenance_mode.core import set_maintenance_mode
from InvenTree.ready import canAppAccessDatabase
from plugin import registry
from plugin.helpers import check_git_version, log_error
logger = logging.getLogger('inventree')
@ -47,9 +45,3 @@ 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()
if not registry.git_is_modern: # pragma: no cover # simulating old git seems not worth it for coverage
log_error(_('Your environment has an outdated git version. This prevents InvenTree from loading plugin details.'), 'load')