Fix version regex

This commit is contained in:
Tim Pope 2014-03-10 14:48:54 -04:00
parent f395f3cbea
commit 7c40a18bfd

View File

@ -2086,7 +2086,7 @@ function! s:BufReadIndex()
else
let cd = exists('*haslocaldir') && haslocaldir() ? 'lcd ' : 'cd '
let dir = getcwd()
if fugitive#git_version() =~# '^0\|1\.[1-7]\.'
if fugitive#git_version() =~# '^0\|^1\.[1-7]\.'
let cmd = s:repo().git_command('status')
else
let cmd = s:repo().git_command(