Try to get sparse checkout to work with lfs
This commit is contained in:
parent
eb8a1005ec
commit
35ef539f5c
1 changed files with 6 additions and 6 deletions
|
|
@ -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
|
||||
"""
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue