mirror of
https://github.com/junegunn/vim-plug.git
synced 2024-12-23 20:45:31 -07:00
parent
f68a4fddae
commit
5695fb8474
6
plug.vim
6
plug.vim
@ -705,6 +705,12 @@ function! s:prepare(...)
|
|||||||
throw 'Invalid current working directory. Cannot proceed.'
|
throw 'Invalid current working directory. Cannot proceed.'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
for evar in ['$GIT_DIR', '$GIT_WORK_TREE']
|
||||||
|
if exists(evar)
|
||||||
|
throw evar.' detected. Cannot proceed.'
|
||||||
|
endif
|
||||||
|
endfor
|
||||||
|
|
||||||
call s:job_abort()
|
call s:job_abort()
|
||||||
if s:switch_in()
|
if s:switch_in()
|
||||||
normal q
|
normal q
|
||||||
|
Loading…
Reference in New Issue
Block a user