Attempt to address GitHub issue #16

This commit is contained in:
Tim Pope 2010-08-18 22:14:50 -04:00
parent a8bd148683
commit 45fe471b44

View File

@ -1365,7 +1365,7 @@ function! s:BufReadIndex()
if fnamemodify($GIT_INDEX_FILE !=# '' ? $GIT_INDEX_FILE : b:git_dir . '/index', ':p') ==# expand('%:p') if fnamemodify($GIT_INDEX_FILE !=# '' ? $GIT_INDEX_FILE : b:git_dir . '/index', ':p') ==# expand('%:p')
let index = '' let index = ''
else else
let index = expand('%') let index = expand('%:p')
endif endif
if b:fugitive_display_format if b:fugitive_display_format
call s:ReplaceCmd(s:repo().git_command('ls-files','--stage'),index) call s:ReplaceCmd(s:repo().git_command('ls-files','--stage'),index)