diff --git a/autoload/airline/extensions/branch.vim b/autoload/airline/extensions/branch.vim index 12be43f..ceaa44b 100644 --- a/autoload/airline/extensions/branch.vim +++ b/autoload/airline/extensions/branch.vim @@ -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