From 44215060718249449d59e1b59524817cf2d102db Mon Sep 17 00:00:00 2001 From: Amjith Date: Wed, 20 May 2009 11:17:43 -0400 Subject: [PATCH] Fixed the path to .git directory. git rev-parse --git-dir does not add the trailing "/" --- plugin/git.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/git.vim b/plugin/git.vim index 3a76230..132971a 100755 --- a/plugin/git.vim +++ b/plugin/git.vim @@ -43,8 +43,8 @@ endfunction function! GitBranch() let git_dir = GetGitDir() - if strlen(git_dir) && filereadable(git_dir . 'HEAD') - let lines = readfile(git_dir . 'HEAD') + if strlen(git_dir) && filereadable(git_dir . '/HEAD') + let lines = readfile(git_dir . '/HEAD') return len(lines) ? matchstr(lines[0], '[^/]*$') : '' else return ''