Try to get sparse checkout to work with lfs

This commit is contained in:
Dan Hawkins 2019-05-15 00:16:04 +01:00
commit 35ef539f5c

View file

@ -232,15 +232,15 @@ def gitsparserestore(String targetDir) {
dir(targetDir) {
if (isUnix()) {
sh """
git rm -rf .
git clean -fxd
git reset --hard
git rm -rf . > /dev/null
git clean -fxd > /dev/null
git reset --hard > /dev/null
"""
} else {
bat """
git rm -rf .
git clean -fxd
git reset --hard
git rm -rf . 2> nul
git clean -fxd 2> nul
git reset --hard 2> nul
"""
}
}