mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-12-10 14:02:01 +08:00
Fix version regex
This commit is contained in:
@@ -2086,7 +2086,7 @@ function! s:BufReadIndex()
|
|||||||
else
|
else
|
||||||
let cd = exists('*haslocaldir') && haslocaldir() ? 'lcd ' : 'cd '
|
let cd = exists('*haslocaldir') && haslocaldir() ? 'lcd ' : 'cd '
|
||||||
let dir = getcwd()
|
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')
|
let cmd = s:repo().git_command('status')
|
||||||
else
|
else
|
||||||
let cmd = s:repo().git_command(
|
let cmd = s:repo().git_command(
|
||||||
|
|||||||
Reference in New Issue
Block a user