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 37888b15b..f8d331faf 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 Feb 27
+" Last Change: 2008 Jun 20
" Only do this when not done yet for this buffer
if (exists("b:did_ftplugin"))
@@ -15,7 +15,7 @@ if !exists('b:git_dir')
elseif $GIT_DIR != ''
let b:git_dir = $GIT_DIR
endif
- if has('win32') || has('win64')
+ if (has('win32') || has('win64')) && exists('b:git_dir')
let b:git_dir = substitute(b:git_dir,'\\','/','g')
endif
endif