Switch &shell during submodule update

Fix #481
This commit is contained in:
Junegunn Choi committed 2016-04-29 13:39:17 +09:00
1 parent 41de3c713c
commit 656ccef8dc
2 files changed
+17 -5

No files matched your search

+5
View File
@@ -841,7 +841,12 @@ Execute (PlugUpdate!):
Execute (When submodules are not initialized):
call system(printf('cd %s && git submodule deinit subsubmodule', g:plugs['subsubmodule'].dir))
^ #481 submodule update should use standard shell
let sh = &shell
set sh=/bin/echo
silent PlugUpdate!
let &shell = sh
unlet sh
q
AssertEqual ' ', system(printf('cd %s && git submodule status', g:plugs['subsubmodule'].dir))[0],
\ 'subsubmodule/subsubmodule should be initialized'