summaryrefslogtreecommitdiff
path: root/lib/git/repo/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/git/repo/base.py')
-rw-r--r--lib/git/repo/base.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/git/repo/base.py b/lib/git/repo/base.py
index d45dd713..4456b1e9 100644
--- a/lib/git/repo/base.py
+++ b/lib/git/repo/base.py
@@ -34,6 +34,11 @@ import os
import sys
import re
+DefaultDBType = GitDB
+if sys.version_info[1] < 5: # python 2.4 compatiblity
+ DefaultDBType = GitCmdObjectDB
+# END handle python 2.4
+
__all__ = ('Repo', )
@@ -66,7 +71,7 @@ class Repo(object):
# represents the configuration level of a configuration file
config_level = ("system", "global", "repository")
- def __init__(self, path=None, odbt = GitDB):
+ def __init__(self, path=None, odbt = DefaultDBType):
"""Create a new Repo instance
:param path: is the path to either the root git directory or the bare git repo::