Fix :Git! on Windows.

Closes #301, #302.
This commit is contained in:
Tim Pope
2013-02-08 19:35:29 -05:00
parent cf3fe781dd
commit bbf9e51eb2

View File

@@ -1,6 +1,6 @@
" fugitive.vim - A Git wrapper so awesome, it should be illegal " fugitive.vim - A Git wrapper so awesome, it should be illegal
" Maintainer: Tim Pope <http://tpo.pe/> " Maintainer: Tim Pope <http://tpo.pe/>
" Version: 1.2 " Version: 2.0
" GetLatestVimScripts: 2975 1 :AutoInstall: fugitive.vim " GetLatestVimScripts: 2975 1 :AutoInstall: fugitive.vim
if exists('g:loaded_fugitive') || &cp if exists('g:loaded_fugitive') || &cp
@@ -2242,10 +2242,10 @@ endif
augroup fugitive_temp augroup fugitive_temp
autocmd! autocmd!
autocmd BufNewFile,BufReadPost * autocmd BufNewFile,BufReadPost *
\ if has_key(s:temp_files,expand('<amatch>:p')) | \ if has_key(s:temp_files,expand('<afile>:p')) |
\ let b:git_dir = s:temp_files[expand('<amatch>:p')] | \ let b:git_dir = s:temp_files[expand('<afile>:p')] |
\ let b:git_type = 'temp' | \ let b:git_type = 'temp' |
\ call s:Detect(expand('<amatch>:p')) | \ call s:Detect(expand('<afile>:p')) |
\ setlocal bufhidden=delete | \ setlocal bufhidden=delete |
\ nnoremap <buffer> <silent> q :<C-U>bdelete<CR>| \ nnoremap <buffer> <silent> q :<C-U>bdelete<CR>|
\ endif \ endif