Skip to content

Commit

Permalink
bitbake: bin/git-make-shallow: Fix syntax to work with older git vers…
Browse files Browse the repository at this point in the history
…ions

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 <[email protected]> for working out how to fix it.

(Bitbake rev: 0723ec9d4cd7c9b2d46904c3a038be123feea374)

Signed-off-by: Richard Purdie <[email protected]>
  • Loading branch information
rpurdie committed Jan 10, 2025
1 parent 335889b commit 6ffd1a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bitbake/bin/git-make-shallow
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 6ffd1a5

Please sign in to comment.