# HG changeset patch # User Henrik Stuart # Date 2014-08-30 15:19:52 # Node ID 3b082ec6fd8b396914bf96312e9000efb96b7ee8 # Parent 23cf8cad34ebc203efff97e098755d5db49c1088 utils: do not fail if git is not installed and has been removed from __init__.py BACKENDS diff --git a/kallithea/lib/utils.py b/kallithea/lib/utils.py --- a/kallithea/lib/utils.py +++ b/kallithea/lib/utils.py @@ -803,6 +803,9 @@ def check_git_version(): from kallithea.lib.vcs.conf import settings from distutils.version import StrictVersion + if 'git' not in BACKENDS: + return None + stdout, stderr = GitRepository._run_git_command('--version', _bare=True, _safe=True)