Skip to content

Strip reference prefixes on branch creation

What does this MR do?

Strip special prefixes ("refs/heads/" and "refs/remotes/") at the beginning of CreateBranchService.execute.

Why was this MR needed?

Forwarding branch names as-is to the backend was causing buggy branches and thus various crashes.

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes #26470 (closed)

Merge request reports