diff options
-rw-r--r-- | git_command.py | 2 |
1 files changed, 1 insertions, 1 deletions
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): | |||
89 | if ver_str.startswith('git version '): | 89 | if ver_str.startswith('git version '): |
90 | _git_version = tuple( | 90 | _git_version = tuple( |
91 | map(lambda x: int(x), | 91 | map(lambda x: int(x), |
92 | ver_str[len('git version '):].strip().split('.')[0:3] | 92 | ver_str[len('git version '):].strip().split('-')[0].split('.')[0:3] |
93 | )) | 93 | )) |
94 | else: | 94 | else: |
95 | print >>sys.stderr, 'fatal: "%s" unsupported' % ver_str | 95 | print >>sys.stderr, 'fatal: "%s" unsupported' % ver_str |