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.
1 parent a7ff2f0 commit b7ae99cCopy full SHA for b7ae99c
git/cmd.py
@@ -224,7 +224,7 @@ def __getattr__(self, name):
224
def _set_cache_(self, attr):
225
if attr == '_version_info':
226
# We only use the first 4 numbers, as everthing else could be strings in fact (on windows)
227
- version_numbers = self._call_process('version').rpartition(' ')[2]
+ version_numbers = self._call_process('version').split(' ')[2]
228
self._version_info = tuple(int(n) for n in version_numbers.split('.')[:4])
229
else:
230
super(Git, self)._set_cache_(attr)
0 commit comments