Content-Length: 951 | pFad | http://github.com/gitpython-developers/GitPython/pull/195.patch
thub.com
From 6a61110053bca2bbf605b66418b9670cbd555802 Mon Sep 17 00:00:00 2001
From: "Marcus R. Brown"
Date: Fri, 11 Jan 2013 00:25:28 -0700
Subject: [PATCH] Fix the `git version` parser.
---
git/cmd.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/git/cmd.py b/git/cmd.py
index b3274dd8f..18f7c714a 100644
--- a/git/cmd.py
+++ b/git/cmd.py
@@ -236,7 +236,7 @@ def _set_cache_(self, attr):
if attr == '_version_info':
# We only use the first 4 numbers, as everthing else could be strings in fact (on windows)
version_numbers = self._call_process('version').split(' ')[2]
- 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())
else:
super(Git, self)._set_cache_(attr)
#END handle version info
--- a PPN by Garber Painting Akron. With Image Size Reduction included!Fetched URL: http://github.com/gitpython-developers/GitPython/pull/195.patch
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy