diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2011-06-13 19:43:39 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2011-06-13 19:43:39 +0200 |
commit | 5127e167328c7da2593fea98a27b27bb0acece68 (patch) | |
tree | 8c64244eab547e92e077e25eac03f730eca0d111 /git/cmd.py | |
parent | c437ee5deb8d00cf02f03720693e4c802e99f390 (diff) | |
download | gitpython-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.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |