Correctly detect mercurial repos using lawrencium
This commit is contained in:
parent
6aac1b469d
commit
5e25794d4b
|
@ -55,7 +55,7 @@ endfunction
|
||||||
function! s:check_in_path()
|
function! s:check_in_path()
|
||||||
if !exists('b:airline_branch_path')
|
if !exists('b:airline_branch_path')
|
||||||
let root = get(b:, 'git_dir', get(b:, 'mercurial_dir', ''))
|
let root = get(b:, 'git_dir', get(b:, 'mercurial_dir', ''))
|
||||||
let bufferpath = resolve(fnamemodify(expand('%'), ':p:h'))
|
let bufferpath = resolve(fnamemodify(expand('%'), ':p'))
|
||||||
|
|
||||||
if !filereadable(root) "not a file
|
if !filereadable(root) "not a file
|
||||||
" if .git is a directory, it's the old submodule format
|
" if .git is a directory, it's the old submodule format
|
||||||
|
|
Loading…
Reference in New Issue