airblade/vim-rooter — pull request #21 by adaszko (2013-07-09 05:52:43+00:00)
Title: Fix for a Windows-specific bug

Using something like substitute(..., '.svn/', '') to strip last
component of path caused a do-nothing operation on Windows, where path
components are separated by '\\'. This lead to :cd to '.svn' directory,
instead of that one level up.

The fix consist of using fnamemodify(..., ':h:h') in place of
substitute(..., '.svn/', '').