diff --git a/git_command.py b/git_command.py index 9bed799e..5988cc28 100644 --- a/git_command.py +++ b/git_command.py @@ -89,7 +89,7 @@ class _GitCall(object): if ver_str.startswith('git version '): _git_version = tuple( map(lambda x: int(x), - ver_str[len('git version '):].strip().split('.')[0:3] + ver_str[len('git version '):].strip().split('-')[0].split('.')[0:3] )) else: print >>sys.stderr, 'fatal: "%s" unsupported' % ver_str