Skip to content

Add warning when project with LFS files is missing .gitattributes

What does this MR do and why?

Related to #429467 (closed) we have found some projects got into a state where there were git-lfs files in the project but the project was missing the .gitattributes file. This is effectively a corrupted project as the git-lfs plugin won't know about any of these files when cloning or pushing and it could lead to a lot of confusion. We are adding a warning banner on the project page for such projects to help save time troubleshooting if a project ends up in this state.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Without a warning With a warning
Screenshot_2024-08-08_at_11.33.17_AM Screenshot_2024-08-08_at_11.48.21_AM

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Related to #429467 (closed)

Edited by Dylan Griffith

Merge request reports

Loading