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:
Tim Pope
2012-05-17 21:42:06 -04:00
parent a8d450fcfe
commit 6515bd43ac

View File

@@ -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