Thanks to visit codestin.com Credit goes to github.com
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.
2 parents 678821a + 6a61110 commit 8f3989fCopy full SHA for 8f3989f
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