Allow git pull/push on project redirects
gitlab-shell branch in order to work properly
IMPORTANT: This MR needs thisWhat 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
)
As a user pushing to a repo that belongs to a user that was renamed (from cat-user
to cat-user-1
)
As a user pulling to a repo after it was renamed (from dog-project
to cat-project
)
As a user pushing from a repo after it was renamed (from dog-project
to cat-project
)
Does this MR meet the acceptance criteria?
-
Changelog entry added, if necessary -
Documentation created/updated -
API support added -
Tests added for this feature/bug - Review
-
Has been reviewed by Backend
-
-
Conform by the merge request performance guides -
Conform by the style guides -
Squashed related commits together
What are the relevant issue numbers?
Closes #35385 (closed)
Edited by Mayra Cabrera