diff --git a/versioncontrol/git.groovy b/versioncontrol/git.groovy index bd389c3..9725650 100644 --- a/versioncontrol/git.groovy +++ b/versioncontrol/git.groovy @@ -102,7 +102,7 @@ def String checkouttoreporoot(String gitURL) { branches: [ [name: 'origin/master'] ], - doGenerateSubmoduleConfigurations: false, + doGenerateSubmoduleConfigurations: false, extensions: [ [$class: 'GitLFSPull'], [$class: 'CleanBeforeCheckout'], @@ -134,6 +134,7 @@ def String checkouttoreporoot(String gitURL) { } def checkgitlfsinstall() { + echo "Doing: git lfs install" if (isUnix()) { sh """ git lfs install @@ -142,6 +143,7 @@ def checkgitlfsinstall() { } else { powershell """ + git config --unset core.hooksPath git lfs install if (\$lastexitcode -ge 1) { exit 1 } """ @@ -307,7 +309,7 @@ def gitsparserestore(String targetDir) { def List convertSparseItemsString(String itemstopublish) { def List sparsepaths = [] - + boolean nonempty = itemstopublish?.trim() if (nonempty) { def String[] items = itemstopublish.trim().split(',')