summaryrefslogtreecommitdiffstats
path: root/bitbake/bin
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2025-01-10 08:22:46 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-01-10 09:10:06 +0000
commit6ffd1a58f9dbcc191a83a96f8df4598ce8190baa (patch)
treeb3fac5faece0ebdea3af6629cc1c02254e347d1b /bitbake/bin
parent335889b6195152c83547d63aa44bd3c33f8b8931 (diff)
downloadpoky-6ffd1a58f9dbcc191a83a96f8df4598ce8190baa.tar.gz
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 <nick.owens@eero.com> for working out how to fix it. (Bitbake rev: 0723ec9d4cd7c9b2d46904c3a038be123feea374) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/bin')
-rwxr-xr-xbitbake/bin/git-make-shallow2
1 files changed, 1 insertions, 1 deletions
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):
116 to_remove = set(all_refs) - set(refs) 116 to_remove = set(all_refs) - set(refs)
117 if to_remove: 117 if to_remove:
118 check_output(git_cmd + ['update-ref', '--no-deref', '--stdin', '-z'], 118 check_output(git_cmd + ['update-ref', '--no-deref', '--stdin', '-z'],
119 input=''.join('delete ' + l + '\0\0' for l in to_remove) + 'commit\0') 119 input=''.join('delete ' + l + '\0\0' for l in to_remove))
120 120
121 121
122def follow_history_intersections(revisions, refs): 122def follow_history_intersections(revisions, refs):