From 7c40a18bfdc2b402dcf660b07d5e747a530217f3 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Mon, 10 Mar 2014 14:48:54 -0400 Subject: [PATCH] Fix version regex --- plugin/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 80020dc..2803925 100644 --- 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(