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): if _git_version is None: ver_str = git.version().decode('utf-8') if ver_str.startswith('git version '): - num_ver_str = ver_str[len('git version '):].strip() + num_ver_str = ver_str[len('git version '):].strip().split('-')[0] to_tuple = [] for num_str in num_ver_str.split('.')[:3]: if num_str.isdigit():