summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--git_command.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git_command.py b/git_command.py
index 58fc7518..89b681e1 100644
--- a/git_command.py
+++ b/git_command.py
@@ -88,7 +88,7 @@ class _GitCall(object):
88 if _git_version is None: 88 if _git_version is None:
89 ver_str = git.version().decode('utf-8') 89 ver_str = git.version().decode('utf-8')
90 if ver_str.startswith('git version '): 90 if ver_str.startswith('git version '):
91 num_ver_str = ver_str[len('git version '):].strip() 91 num_ver_str = ver_str[len('git version '):].strip().split('-')[0]
92 to_tuple = [] 92 to_tuple = []
93 for num_str in num_ver_str.split('.')[:3]: 93 for num_str in num_ver_str.split('.')[:3]:
94 if num_str.isdigit(): 94 if num_str.isdigit():