From c85671ce516b6414a3782a2d2dcd643af53ca73f Mon Sep 17 00:00:00 2001 From: Avi Kivity Date: Thu, 27 Nov 2025 18:39:13 +0200 Subject: [PATCH] scripts: refresh-submodules: don't omit last (first) commit `git log --format` doesn't add a newline after the last line. This causes `read` to ignore that line, losing the last line (corresponding to the first commit). Use `git log --tformat` instead, which terminates the last line. Closes scylladb/scylladb#27317 --- scripts/refresh-submodules.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/refresh-submodules.sh b/scripts/refresh-submodules.sh index 14cd85ce6a..9bfca23ac8 100755 --- a/scripts/refresh-submodules.sh +++ b/scripts/refresh-submodules.sh @@ -41,7 +41,7 @@ for ent in "${@:-${submodules[@]}}"; do # create a summary using the output format of "git submodule summary" SUMMARY=" * ${submodule} ${head_ref}...${branch_ref} (${count}): -$(git log --pretty='format: %H %s' --first-parent HEAD..${bump_to} | while IFS= read -r line; do +$(git log --pretty='tformat: %H %s' --first-parent HEAD..${bump_to} | while IFS= read -r line; do SUBJECT=$(echo $line | cut -d' ' -f2-) echo " > ${SUBJECT}" if [[ "$SUBJECT" == "Merge "* ]]; then