[go: up one dir, main page]

Skip to content

Missing .gitattributes for LFS warning does not consider subdirectories

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Problem

In #429467 (closed) we introduced a warning for users that have LFS configured for their project but do not have a .gitattributes file in the root of the project.

Since it is valid to have .gitattributes in a subdirectory this warning may be a false positive for some users.

Workaround

For now it should be possible for users to workaround this issue by creating an empty .gitattributes file in the root directory of their project.

We might want to consider adding this workaround to some docs or in the warning.

Solution

Longer term we may want to evaluate if we should recursively look up this files but it may be a performance issue as we are checking this data on the project page and we were already trying to be careful about adding another Gitaly lookup to the project home page.

Edited by 🤖 GitLab Bot 🤖