From 585ca691a3690302aef06f3f566985944052bd99 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sun, 15 Jul 2012 13:03:09 -0400 Subject: [PATCH] Revert "Follow symlinks" This reverts commit 57af9b98cffbb5030b93eab8c26cb19f7f1f2ea6, which was pushed by accident. --- plugin/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index f968fa7..aaa736c 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -108,7 +108,7 @@ function! fugitive#extract_git_dir(path) abort if s:shellslash(a:path) =~# '^fugitive://.*//' return matchstr(s:shellslash(a:path), '\C^fugitive://\zs.\{-\}\ze//') endif - let root = s:shellslash(simplify(fnamemodify(resolve(a:path), ':p:s?[\/]$??'))) + let root = s:shellslash(simplify(fnamemodify(a:path, ':p:s?[\/]$??'))) let previous = "" while root !=# previous let dir = s:sub(root, '[\/]$', '') . '/.git'