commit 7c40a18bfdc2b402dcf660b07d5e747a530217f3 (tree)
parent f395f3cbeaa353ff1545c3c8f86b2fef65003592
Author: Tim Pope <code@tpope.net>
Date: Mon, 10 Mar 2014 14:48:54 -0400
Fix version regex
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim
@@ -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(