diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2014-11-12 09:31:43 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2014-11-12 09:31:43 +0100 |
commit | 8f3989f27e91119bb29cc1ed93751c3148762695 (patch) | |
tree | e31f3571adbb38189e8b2f8e492896fd0cb9fdcc /git/cmd.py | |
parent | 678821a036c04dfbe331d238a7fe0223e8524901 (diff) | |
parent | 6a61110053bca2bbf605b66418b9670cbd555802 (diff) | |
download | gitpython-8f3989f27e91119bb29cc1ed93751c3148762695.tar.gz |
Merge pull request #195 from maxyz/github-pull-88
Fix the `git version` parser.
Diffstat (limited to 'git/cmd.py')
-rw-r--r-- | git/cmd.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -236,7 +236,7 @@ class Git(LazyMixin): 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').split(' ')[2] - self._version_info = tuple(int(n) for n in version_numbers.split('.')[:4]) + self._version_info = tuple(int(n) for n in version_numbers.split('.')[:4] if n.isdigit()) else: super(Git, self)._set_cache_(attr) #END handle version info |