summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2015-02-19 18:29:10 +0100
committerSebastian Thiel <byronimo@gmail.com>2015-02-19 18:29:10 +0100
commit3d74543a545a9468cabec5d20519db025952efed (patch)
treebb40047008c625ac234fdf1be0cebbd43e77bcb1
parent346424daaaf2bb3936b5f4c2891101763dc2bdc0 (diff)
downloadgitpython-3d74543a545a9468cabec5d20519db025952efed.tar.gz
Adjust minimum git version with git-file support.
As I am pretty sure to have tested it with 1.7.0, I assume they added the git file feature somewhere between .0 .10. Fixes #252
-rw-r--r--git/objects/submodule/base.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/git/objects/submodule/base.py b/git/objects/submodule/base.py
index 9c1dc647..4347df55 100644
--- a/git/objects/submodule/base.py
+++ b/git/objects/submodule/base.py
@@ -136,7 +136,8 @@ class Submodule(util.IndexObject, Iterable, Traversable):
@classmethod
def _need_gitfile_submodules(cls, git):
- return git.version_info[:3] >= (1, 8, 0)
+ # on debian wheezy, it seems to already support git files at this version. Maybe even earler, who knows
+ return git.version_info[:3] >= (1, 7, 10)
def __eq__(self, other):
"""Compare with another submodule"""