fixed try catch and added git to permanent dependency

This commit is contained in:
vabene1111
2023-07-28 15:59:48 +02:00
parent 22dfb40fd5
commit 6a39148e5f
2 changed files with 3 additions and 4 deletions

View File

@ -319,10 +319,9 @@ def system(request):
secret_key = False if os.getenv('SECRET_KEY') else True
r = subprocess.check_output(['git', 'show', '-s'], cwd=BASE_DIR)
# r = subprocess.check_output(['git', 'show', '-s'], cwd=os.path.join(BASE_DIR, 'recipes', 'plugins', 'enterprise_plugin'))
version_info = []
try:
r = subprocess.check_output(['git', 'show', '-s'], cwd=BASE_DIR)
version_info.append({
'name': 'Tandoor ' + VERSION_NUMBER,
'version': re.sub(r'<.*>', '', r.decode()),