Skip to content

Add "project was moved" error messages for git

Michael Kozono requested to merge mk-add-project-moved-errors-for-git into master

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

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

As root user, pulling a public repo after it was renamed from foo to food

Screen_Shot_2017-06-16_at_1.28.42_PM

As root user, pulling a private repo owned by root after it was renamed from foo to food

(Same as above)

As random user, attempting to pull a public repo owned by root after it was renamed from foo to food

(Same as above)

As random user, attempting to pull a private repo owned by root after it was renamed from foo to food

Screen_Shot_2017-06-16_at_1.54.47_PM

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

#17361 (closed)

Edited by Michael Kozono

Merge request reports