summaryrefslogtreecommitdiff
path: root/runtime/ftplugin/git.vim
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/ftplugin/git.vim')
-rw-r--r--runtime/ftplugin/git.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/ftplugin/git.vim b/runtime/ftplugin/git.vim
index f8d331faf..9ac1aa151 100644
--- a/runtime/ftplugin/git.vim
+++ b/runtime/ftplugin/git.vim
@@ -1,7 +1,7 @@
" Vim filetype plugin
" Language: generic git output
" Maintainer: Tim Pope <vimNOSPAM@tpope.info>
-" Last Change: 2008 Jun 20
+" Last Change: 2008 Jul 30
" Only do this when not done yet for this buffer
if (exists("b:did_ftplugin"))
@@ -22,7 +22,7 @@ endif
if exists('*shellescape') && exists('b:git_dir') && b:git_dir != ''
if b:git_dir =~# '/\.git$' " Not a bare repository
- let &l:path = escape(fnamemodify(b:git_dir,':t'),'\, ').','.&l:path
+ let &l:path = escape(fnamemodify(b:git_dir,':h'),'\, ').','.&l:path
endif
let &l:path = escape(b:git_dir,'\, ').','.&l:path
let &l:keywordprg = 'git --git-dir='.shellescape(b:git_dir).' show'