Fix creation of files named index

Closes #231.
This commit is contained in:
Tim Pope 2012-08-01 10:35:52 -04:00
parent b0c74e2289
commit a90cc48c7a

View File

@ -2180,7 +2180,7 @@ augroup fugitive_files
autocmd BufReadCmd index{,.lock} autocmd BufReadCmd index{,.lock}
\ if fugitive#is_git_dir(expand('<amatch>:p:h')) | \ if fugitive#is_git_dir(expand('<amatch>:p:h')) |
\ exe s:BufReadIndex() | \ exe s:BufReadIndex() |
\ else | \ elseif filereadable(expand('<amatch>')) |
\ read <amatch> | \ read <amatch> |
\ 1delete | \ 1delete |
\ endif \ endif