Merge pull request #497 from johnathanz/master

doesn't assume user has 'set autochdir' set
This commit is contained in:
Bailey Ling 2014-04-23 21:11:33 -04:00
commit a222518b76
1 changed files with 1 additions and 1 deletions

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