From 6ffd1a58f9dbcc191a83a96f8df4598ce8190baa Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Fri, 10 Jan 2025 08:22:46 +0000 Subject: [PATCH] bitbake: bin/git-make-shallow: Fix syntax to work with older git versions The transaction model was only introduced in git 2.27 whereas Ubuntu focal (20.04) has 2.25. This causes failures. We don't need the transations here so simply drop the commit piece, fixing on older git versions. Credit to Nick Owens for working out how to fix it. (Bitbake rev: 0723ec9d4cd7c9b2d46904c3a038be123feea374) Signed-off-by: Richard Purdie --- bitbake/bin/git-make-shallow | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitbake/bin/git-make-shallow b/bitbake/bin/git-make-shallow index 8ad704fae5..e6c180b4d6 100755 --- a/bitbake/bin/git-make-shallow +++ b/bitbake/bin/git-make-shallow @@ -116,7 +116,7 @@ def filter_refs(refs): to_remove = set(all_refs) - set(refs) if to_remove: check_output(git_cmd + ['update-ref', '--no-deref', '--stdin', '-z'], - input=''.join('delete ' + l + '\0\0' for l in to_remove) + 'commit\0') + input=''.join('delete ' + l + '\0\0' for l in to_remove)) def follow_history_intersections(revisions, refs):