Permalink
Browse files

Revert "Follow symlinks"

This reverts commit 57af9b9, which was
pushed by accident.
  • Loading branch information...
1 parent 5298448 commit 585ca691a3690302aef06f3f566985944052bd99 @tpope committed Jul 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugin/fugitive.vim
View
@@ -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'

0 comments on commit 585ca69

Please sign in to comment.