Fix GitHub Importer failing when target_branch_sha doesn't exist in local repository
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?
-
Changelog entry added, if necessary -
Documentation created/updated -
API support added - Tests
-
Added for this feature/bug -
All builds are passing
-
-
Conform by the merge request performance guides -
Conform by the style guides -
Branch has no merge conflicts with master
(if it does - rebase it please) -
Squashed related commits together
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.