From bad17fe6eb3bf598ea9820c047052da92c158d4b Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Sat, 27 Nov 2021 12:04:18 +0100 Subject: [PATCH] [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 --- .ci/inc/pmd-doc.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ci/inc/pmd-doc.inc b/.ci/inc/pmd-doc.inc index 08b1ad988f..4a6d5acc14 100644 --- a/.ci/inc/pmd-doc.inc +++ b/.ci/inc/pmd-doc.inc @@ -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}/" git status 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..." git commit -q -m "Added pmd-${PMD_CI_MAVEN_PROJECT_VERSION}"