diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index af74cbef9cb5c0caa8eb445ee3a695469711a810..bcbf7f72dd7b6b81f0efd5fb1d4abf5bd9aa9e05 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -2470,16 +2470,13 @@ function! s:BufReadIndex() abort else let cd = exists('*haslocaldir') && haslocaldir() ? 'lcd ' : 'cd ' let dir = getcwd() - if fugitive#git_version() =~# '^0\|^1\.[1-3]\.' + if fugitive#git_version() =~# '^0\|^1\.[1-7]\.' let cmd = s:repo().git_command('status') - elseif fugitive#git_version() =~# '^1\.[4-7]\.' - let cmd = s:repo().git_command('status', '-u') else let cmd = s:repo().git_command( \ '-c', 'status.displayCommentPrefix=true', \ '-c', 'color.status=false', \ '-c', 'status.short=false', - \ '-c', 'status.showUntrackedFiles=all', \ 'status') endif try