Avoid polluting branch list and restore parent commit when using checkpoints (#27191)

Release Notes:

- N/A
f365b80814Antonio Scandurra committed on 3/20/2025, 3:00:23 PM· committed by GitHubparentd0641a3
4 files changedLine totals unavailable