mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-14 14:23:51 -05:00
Support relative core.worktree
This is based on Chen Mulong's implementation in #204, but uses the same
relative path check as a8d450fcfe, for
better Windows support.
This commit is contained in:
@@ -208,7 +208,11 @@ function! s:repo_configured_tree() dict abort
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
return self._tree
|
||||
if self._tree =~# '^\.'
|
||||
return simplify(self.dir(self._tree))
|
||||
else
|
||||
return self._tree
|
||||
endif
|
||||
endfunction
|
||||
|
||||
function! s:repo_tree(...) dict abort
|
||||
|
||||
Reference in New Issue
Block a user