We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
git version
1 parent 27c577d commit 6a61110Copy full SHA for 6a61110
git/cmd.py
@@ -236,7 +236,7 @@ def _set_cache_(self, attr):
236
if attr == '_version_info':
237
# We only use the first 4 numbers, as everthing else could be strings in fact (on windows)
238
version_numbers = self._call_process('version').split(' ')[2]
239
- 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())
240
else:
241
super(Git, self)._set_cache_(attr)
242
#END handle version info
0 commit comments