We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent59879a4 commitc3b7263Copy full SHA for c3b7263
git/cmd.py
@@ -223,8 +223,9 @@ def __getattr__(self, name):
223
224
def_set_cache_(self,attr):
225
ifattr=='_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]
-self._version_info=tuple(int(n)forninversion_numbers.split('.'))
228
+self._version_info=tuple(int(n)forninversion_numbers.split('.')[:4])
229
else:
230
super(Git,self)._set_cache_(attr)
231
#END handle version info
@@ -238,7 +239,7 @@ def working_dir(self):
238
239
@property
240
defversion_info(self):
241
"""
-:return: tuple(int,...) tuple with integers representing the major, minor
242
+:return: tuple(int,int, int, int) tuple with integers representing the major, minor
243
and additional version numbers as parsed from git version.
244
This value is generated on demand and is cached"""
245
returnself._version_info