# HG changeset patch # User Henrik Stuart # Date 1409404792 -7200 # Node ID 3b082ec6fd8b396914bf96312e9000efb96b7ee8 # Parent 23cf8cad34ebc203efff97e098755d5db49c1088 utils: do not fail if git is not installed and has been removed from __init__.py BACKENDS diff -r 23cf8cad34eb -r 3b082ec6fd8b kallithea/lib/utils.py --- a/kallithea/lib/utils.py Thu Aug 28 12:12:44 2014 +0000 +++ b/kallithea/lib/utils.py Sat Aug 30 15:19:52 2014 +0200 @@ -803,6 +803,9 @@ 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)