Skip to content

Commit

Permalink
Fix readfile() usage
Browse files Browse the repository at this point in the history
Resolves: #1886
  • Loading branch information
tpope committed Nov 16, 2021
1 parent e47121f commit f9c0b8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/fugitive.vim
Expand Up @@ -474,7 +474,7 @@ function! fugitive#CommonDir(dir) abort
if getfsize(a:dir . '/HEAD') < 10
let s:commondirs[a:dir] = ''
elseif filereadable(a:dir . '/commondir')
let cdir = get(readfile(a:dir . '/commondir', 1), 0, '')
let cdir = get(readfile(a:dir . '/commondir', '', 1), 0, '')
if cdir =~# '^/\|^\a:/'
let s:commondirs[a:dir] = s:Slash(FugitiveVimPath(cdir))
else
Expand Down

0 comments on commit f9c0b8e

Please sign in to comment.