Revert "Follow symlinks"

This reverts commit 57af9b98cf, which was
pushed by accident.
This commit is contained in:
Tim Pope
2012-07-15 13:03:09 -04:00
parent 5298448e88
commit 585ca691a3

View File

@@ -108,7 +108,7 @@ function! fugitive#extract_git_dir(path) abort
if s:shellslash(a:path) =~# '^fugitive://.*//' if s:shellslash(a:path) =~# '^fugitive://.*//'
return matchstr(s:shellslash(a:path), '\C^fugitive://\zs.\{-\}\ze//') return matchstr(s:shellslash(a:path), '\C^fugitive://\zs.\{-\}\ze//')
endif endif
let root = s:shellslash(simplify(fnamemodify(resolve(a:path), ':p:s?[\/]$??'))) let root = s:shellslash(simplify(fnamemodify(a:path, ':p:s?[\/]$??')))
let previous = "" let previous = ""
while root !=# previous while root !=# previous
let dir = s:sub(root, '[\/]$', '') . '/.git' let dir = s:sub(root, '[\/]$', '') . '/.git'