Skip to content

Fix GitHub Importer failing when target_branch_sha doesn't exist in local repository

Gabriel Mazetto requested to merge 30039-fix-github-importer-deleted-branch into master

What does this MR do?

Change to always fetch from remote to restore target_branch

Are there points in the code the reviewer needs to double check?

It's hard to emulate the issue, so please review with care.

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes #30039 (closed)

This is based upon !9992 (merged) and it is currently under review. After the first gets merged I will rebase this one.

cc @DouweM @dbalexandre

Merge request reports