doesn't assume user has 'set autochdir' set

This commit is contained in:
Johnathan 2014-04-24 03:03:03 +10:00
parent 81430cbdf6
commit 9e8fe7a98e

View File

@ -42,7 +42,7 @@ function! airline#extensions#branch#head()
let b:airline_head = fugitive#head()
if empty(b:airline_head) && !exists('b:git_dir')
let b:airline_head = s:get_git_branch(getcwd())
let b:airline_head = s:get_git_branch(expand("%:p:h"))
endif
endif