Fetch (just) enough refs in script/cherry-pick (#41949)

Before this change we'd download all the tagged commits, but none of
their ancestors,
this was slow and made cherry-picking fail.

Release Notes:

- N/A
f9fb855990Conrad Irwin committed on 11/5/2025, 12:09:43 AM· committed by GitHubparentb587a62
1 file changedLine totals unavailable