[go: up one dir, main page]

Skip to content

Better CLI error when LFS is not enabled

Problem to solve

When pushing LFS changes to a project without LFS enabled, you get this error (even as owner of the project)

image

Took me QUITE some time to figure out what went wrong.

Proposal

Make GitLab return something more clear like LFS is not enabled or Your changes include LFS objects, but you are not allowed to use LFS in this project or something of the like

What does success look like, and how can we measure that?

  1. Create a project, disable LFS
  2. Add LFS objects to your local checkout of the project
  3. Commit and run git push
  4. GitLab returns a more usable error message than the above.

Links / references