parent
f68a4fddae
commit
5695fb8474
1 changed files with 6 additions and 0 deletions
6
plug.vim
6
plug.vim
|
@ -705,6 +705,12 @@ function! s:prepare(...)
|
|||
throw 'Invalid current working directory. Cannot proceed.'
|
||||
endif
|
||||
|
||||
for evar in ['$GIT_DIR', '$GIT_WORK_TREE']
|
||||
if exists(evar)
|
||||
throw evar.' detected. Cannot proceed.'
|
||||
endif
|
||||
endfor
|
||||
|
||||
call s:job_abort()
|
||||
if s:switch_in()
|
||||
normal q
|
||||
|
|
Loading…
Reference in a new issue