motiejus/dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.jakstys.lt/motiejus/dotfiles.git
Log | Tree | Refs | README | LICENSE

commit 1b7e4070f5f7b7522422f5b00a75b323cc314daf (tree)
parent ceb18eeceb1b7b89015b9e7adc3739edb6393f12
Author: Tim Pope <code@tpope.net>
Date:   Sat,  8 Oct 2011 16:03:50 -0400

Fix bare repository support

Closes #117.

Diffstat:
Mplugin/fugitive.vim | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim @@ -445,6 +445,8 @@ function! s:buffer_path(...) dict abort let rev = matchstr(self.spec(),'^fugitive://.\{-\}//\zs.*') if rev != '' let rev = s:sub(rev,'\w*','') + elseif self.repo().bare() + let rev = '/.git'.self.spec()[strlen(self.repo().dir()) : -1] else let rev = self.spec()[strlen(self.repo().tree()) : -1] endif