Skip to content

Commit

Permalink
Fix git-dir detection on Windows
Browse files Browse the repository at this point in the history
Closes tpope#176.
  • Loading branch information
tpope committed Mar 26, 2012
1 parent bc3ffa6 commit 24e9b49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin/fugitive.vim
Expand Up @@ -105,8 +105,8 @@ function! fugitive#is_git_dir(path) abort
endfunction

function! fugitive#extract_git_dir(path) abort
if s:shellslash(a:path) =~? '^fugitive://.*//'
return matchstr(a:path,'fugitive://\zs.\{-\}\ze//')
if s:shellslash(a:path) =~# '^fugitive://.*//'
return matchstr(s:shellslash(a:path), '\C^fugitive://\zs.\{-\}\ze//')
endif
let root = s:shellslash(simplify(fnamemodify(a:path,':p:s?[\/]$??')))
let previous = ""
Expand Down

0 comments on commit 24e9b49

Please sign in to comment.