mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-12 21:33:53 -05:00
Fix version regex
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user