Improved information for users trying to push to an archived project
Problem to solve
Inform users that the project they are trying to push to is archived from the command line.
Further details
Use cases:
- Projects have been migrated to a new instance and the old instance is being archived during the final transition
- Any other reasons a project maintainer would archive a project will be exposed to new users
Proposal
If a user tries to push to an archived project, they see this generic failure message:
GitLab: You are not allowed to push code to this project.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
The user should see a more specific failure message if the project has been archived. Something like:
GitLab: Archived project! Repository and other project resources are read-only.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.