Merge pull request #497 from johnathanz/master
doesn't assume user has 'set autochdir' set
This commit is contained in:
commit
a222518b76
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue