Skip to content

Commit 8f3989f

Browse files
committed
Merge pull request #195 from maxyz/github-pull-88
Fix the `git version` parser.
2 parents 678821a + 6a61110 commit 8f3989f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git/cmd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ def _set_cache_(self, attr):
236236
if attr == '_version_info':
237237
# We only use the first 4 numbers, as everthing else could be strings in fact (on windows)
238238
version_numbers = self._call_process('version').split(' ')[2]
239-
self._version_info = tuple(int(n) for n in version_numbers.split('.')[:4])
239+
self._version_info = tuple(int(n) for n in version_numbers.split('.')[:4] if n.isdigit())
240240
else:
241241
super(Git, self)._set_cache_(attr)
242242
#END handle version info

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy