Fix #355 - PlugSnapshot to create scripts that disable shallow-clone

This commit is contained in:
Junegunn Choi
2015-12-14 23:16:50 +09:00
parent cd26cd562e
commit 52d7da3925
2 changed files with 3 additions and 3 deletions

View File

@@ -1142,7 +1142,7 @@ Execute (PlugSnapshot / #154 issues with paths containing spaces):
PlugSnapshot
AssertEqual '#!/bin/sh', getline(1)
AssertEqual '# Generated by vim-plug', getline(2)
AssertEqual 'vim +PlugUpdate +qa', getline(5)
AssertEqual 'vim -c ''let g:plug_shallow = 0 | PlugUpdate | qa''', getline(5)
AssertEqual 'PLUG_HOME=$TMPDIR/plug\ with\ spaces', getline(7)
AssertEqual 0, stridx(getline(9), 'cd $PLUG_HOME/seoul256.vim/ && git reset --hard')
AssertEqual 0, stridx(getline(10), 'cd $PLUG_HOME/vim-easy-align/ && git reset --hard')