summaryrefslogtreecommitdiff
path: root/git/cmd.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2011-06-13 19:43:39 +0200
committerSebastian Thiel <byronimo@gmail.com>2011-06-13 19:43:39 +0200
commit5127e167328c7da2593fea98a27b27bb0acece68 (patch)
tree8c64244eab547e92e077e25eac03f730eca0d111 /git/cmd.py
parentc437ee5deb8d00cf02f03720693e4c802e99f390 (diff)
downloadgitpython-5127e167328c7da2593fea98a27b27bb0acece68.tar.gz
Fixed implementation of _version_info which didn't work for python 2.4 thanks to the rpartition method. omg
Diffstat (limited to 'git/cmd.py')
-rw-r--r--git/cmd.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git/cmd.py b/git/cmd.py
index 22a8924b..b3ca0f48 100644
--- a/git/cmd.py
+++ b/git/cmd.py
@@ -224,7 +224,7 @@ class Git(LazyMixin):
def _set_cache_(self, attr):
if attr == '_version_info':
# We only use the first 4 numbers, as everthing else could be strings in fact (on windows)
- version_numbers = self._call_process('version').rpartition(' ')[2]
+ version_numbers = self._call_process('version').split(' ')[2]
self._version_info = tuple(int(n) for n in version_numbers.split('.')[:4])
else:
super(Git, self)._set_cache_(attr)