mirror of
https://github.com/tpope/vim-fugitive.git
synced 2026-10-07 20:54:39 +08: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:
1 parent
a8d450fcfe
commit
6515bd43ac
1 file changed
+5
-1
+5
-1
@@ -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