Eliminate internal use of FugitiveCommonDir()

Lead by example.
This commit is contained in:
Tim Pope
2021-09-10 13:36:32 -04:00
parent b6545ad389
commit bb4d1dd9a8

View File

@@ -478,7 +478,7 @@ function! s:ProjectionistDetect() abort
if exists('+shellslash') && !&shellslash if exists('+shellslash') && !&shellslash
let base = tr(base, '/', '\') let base = tr(base, '/', '\')
endif endif
let file = FugitiveCommonDir(dir) . '/info/projections.json' let file = FugitiveFind('.git/info/projections.json', dir)
if filereadable(file) if filereadable(file)
call projectionist#append(base, file) call projectionist#append(base, file)
endif endif