Add "project was moved" error messages for git
What does this MR do?
Adds helpful error messages to git rejections when you push/pull a project that was moved. This is a direct follow-on to !10370 (closed).
Moved branch to gitlab-org/gitlab-ce to avoid job timeouts and also to run EE compatibility check (there are minor conflicts with EE master). Previous MR https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/11107
Tasks
-
Test git actions locally -
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/10370#note_28858283 -
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/10370#note_28858492 -
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/10370#note_28858546
Are there points in the code the reviewer needs to double check?
Why was this MR needed?
When a project is renamed or transferred, or if its namespace is renamed, any git commands on the old URI will fail. This will help users to quickly fix their remotes and get back to what they were trying to do.
Screenshots
foo
to food
As root user, pulling a public repo after it was renamed from
foo
to food
As root user, pulling a private repo owned by root after it was renamed from (Same as above)
foo
to food
As random user, attempting to pull a public repo owned by root after it was renamed from (Same as above)
foo
to food
As random user, attempting to pull a private repo owned by root after it was renamed from
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?
Edited by Michael Kozono