[ci] Add --sparse option when publishing documentation

This is needed since git 2.34.0
See https://github.com/git/git/blob/master/Documentation/RelNotes/2.34.0.txt
This commit is contained in:
Andreas Dangel
2021-11-27 12:04:18 +01:00
parent a7f9e03b07
commit bad17fe6eb

View File

@ -65,7 +65,7 @@ function publish_release_documentation_github() {
rsync -ah --stats "../docs/pmd-doc-${PMD_CI_MAVEN_PROJECT_VERSION}/" "pmd-${PMD_CI_MAVEN_PROJECT_VERSION}/" rsync -ah --stats "../docs/pmd-doc-${PMD_CI_MAVEN_PROJECT_VERSION}/" "pmd-${PMD_CI_MAVEN_PROJECT_VERSION}/"
git status git status
pmd_ci_log_debug "Executing: git add pmd-${PMD_CI_MAVEN_PROJECT_VERSION}" pmd_ci_log_debug "Executing: git add pmd-${PMD_CI_MAVEN_PROJECT_VERSION}"
git add "pmd-${PMD_CI_MAVEN_PROJECT_VERSION}" git add --sparse "pmd-${PMD_CI_MAVEN_PROJECT_VERSION}"
pmd_ci_log_debug "Executing: git commit..." pmd_ci_log_debug "Executing: git commit..."
git commit -q -m "Added pmd-${PMD_CI_MAVEN_PROJECT_VERSION}" git commit -q -m "Added pmd-${PMD_CI_MAVEN_PROJECT_VERSION}"