Fix :Gbrowse with cwd other than work tree

This commit is contained in:
Tim Pope 2018-08-19 18:03:41 -04:00
parent 662b501eee
commit 2b5effe2f1

View File

@ -500,7 +500,7 @@ function! fugitive#Path(url, ...) abort
endfunction
function! s:Relative(...) abort
return fugitive#Path(@%, a:0 ? a:1 : './')
return fugitive#Path(@%, a:0 ? a:1 : ':(top)')
endfunction
function! fugitive#Route(object, ...) abort