Skip to content

Resolve "Rebase not working with forked projects in 9.4.2"

What does this MR do?

Fix rebasing when the MR is from a fork, and the upstream has the source branch protected (or you just can't push upstream anyway).

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

I can't do a real test for this, because we don't run hooks in the specs, because we'd need to run a server for them to hit the internal API 😞 I have tested it manually, however.

The other way to solve this would be to override project inside the RebaseService, but I think this is clearer.

Why was this MR needed?

We broke something when fixing another bug 🤦

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes #3071 (closed).

Edited by username-removed-443319

Merge request reports