Skip to content

Allow git pull/push on project redirects

IMPORTANT: This MR needs this gitlab-shell branch in order to work properly

What does this MR do?

Allow git pull/push on a repository after it was renamed

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

  • Different scenarios with permanent and temporal redirects
  • Compatibility with gitlab-shell

Why was this MR needed?

To let old git url's of redirected projects continue to work. Now it displays a redirect warning message when that happens instead of rejecting the push/pull

Screenshots (if relevant)

As a user pushing to a repo that belongs to a group that was renamed (from cat-group to cat-group-1) Screen_Shot_2017-12-06_at_4.41.06_PM

As a user pushing to a repo that belongs to a user that was renamed (from cat-user to cat-user-1) Screen_Shot_2017-12-06_at_4.41.45_PM

As a user pulling to a repo after it was renamed (from dog-project to cat-project)

Screen_Shot_2017-12-07_at_10.48.52_AM

As a user pushing from a repo after it was renamed (from dog-project to cat-project)

Screen_Shot_2017-12-07_at_10.49.07_AM

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes #35385 (closed)

Edited by Mayra Cabrera

Merge request reports