From e40ad6369bc74d01af4dc41d3a9b8e25ac2aa01e Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Thu, 8 Jan 2015 12:19:56 +0100 Subject: Fixed PY3 support. Apparently, thanks to an incorrect version check, PY3 ended up using a git command object database by default. This is now fixed. Additionally, the update_cache code was adjusted to check for method-existence, as it's valid to use object databases which simply don't have a caching mechanism (like the git command object database) --- git/repo/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git/repo/base.py') diff --git a/git/repo/base.py b/git/repo/base.py index 7bd2be48..a84f617d 100644 --- a/git/repo/base.py +++ b/git/repo/base.py @@ -59,7 +59,7 @@ import sys import re DefaultDBType = GitDB -if sys.version_info[1] < 5: # python 2.4 compatiblity +if sys.version_info[:2] < (2, 5): # python 2.4 compatiblity DefaultDBType = GitCmdObjectDB # END handle python 2.4 -- cgit v1.2.1