CI: Fix quoting for --shallow-since date

The date format from 'git log --format=%ci' includes spaces
(e.g., "2024-01-15 17:28:00 -0700"). Without quotes, the shell
splits this and git sees only "17:28:00" as an invalid refspec.

Co-developed-by: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: Simon Glass <simon.glass@canonical.com>
This commit is contained in:
Simon Glass
2025-12-21 11:58:49 -07:00
parent 72d06f1289
commit 9736ccce07

View File

@@ -979,6 +979,6 @@ trigger_snap_builds:
cd $CI_PROJECT_DIR
git remote add github git@github.com:sjg20/u-boot-concept.git || true
git fetch github master --depth=1
git fetch origin --shallow-since=$(git log -1 --format=%ci github/master)
git fetch origin "--shallow-since=$(git log -1 --format=%ci github/master)"
git push github HEAD:master --force
echo "GitHub push completed"