Use git checkout on directory as some files may not be in git resulting in, e.g.:

error: pathspec 'tests/data/lorem-copy.txt' did not match any file(s) known to git.
error: pathspec 'tests/data/testimage-copy.png' did not match any file(s) known to git.
This commit is contained in:
Andreas Fischer 2014-04-07 14:06:20 +02:00
Родитель 3c9f588449
Коммит de07f25bc2
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -139,7 +139,7 @@ function execute_tests {
cd $BASEDIR
# revert changes to tests/data
git checkout tests/data/*
git checkout tests/data
# reset data directory
rm -rf $DATADIR