You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2026/10/14 08:03:59 UTC

(sling-tooling-jenkins) 01/02: fix: try harder to print diff

This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch feat/llmao
in repository https://gitbox.apache.org/repos/asf/sling-tooling-jenkins.git

commit 751570319bedb50f0faf9410593f62b4d19ba400
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Wed Oct 14 08:56:09 2026 +0100

    fix: try harder to print diff
---
 resources/org/apache/sling/jenkins/llmao/run-docker.sh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/resources/org/apache/sling/jenkins/llmao/run-docker.sh b/resources/org/apache/sling/jenkins/llmao/run-docker.sh
index 26ed2c7..391dbf9 100644
--- a/resources/org/apache/sling/jenkins/llmao/run-docker.sh
+++ b/resources/org/apache/sling/jenkins/llmao/run-docker.sh
@@ -60,10 +60,14 @@ fi
 
 # Report partial edits on failure as well. Include new files without staging
 # them, and disable external diff drivers/text converters from the checkout.
+printf 'Pi project diff (exit code %s):\n' "$status"
 git --no-pager -C "$LLMAO_WORKSPACE" diff --no-ext-diff --no-textconv --binary HEAD --
 while IFS= read -r -d '' file; do
     git --no-pager -C "$LLMAO_WORKSPACE" diff --no-ext-diff --no-textconv \
         --no-index --binary -- /dev/null "$file" || test "$?" -eq 1
 done < <(git -C "$LLMAO_WORKSPACE" ls-files --others --exclude-standard -z)
+if [ -z "$(git -C "$LLMAO_WORKSPACE" status --porcelain)" ]; then
+    echo 'No project changes.'
+fi
 
 exit "$status"