Skip to content
This repository has been archived by the owner on Mar 2, 2021. It is now read-only.

Remote “origin” does not support the LFS locking API. Consider disabling it. #31

Open
Saw-mon-and-Natalie opened this issue Mar 10, 2020 · 1 comment

Comments

@Saw-mon-and-Natalie
Copy link

When I enable Netlify Large Media on my test site and try to git push I get the following error:

Remote "origin" does not support the LFS locking API. Consider disabling it with:

$ git config lfs.https://[SITE_ID].netlify.com/.netlify/large-media.locksverify false

batch response: Expected json type, got: "text/plain; charset=utf-8"
Uploading LFS objects:   0% (0/1), 0 B | 0 B/s, done.
error: failed to push some refs to 'git@github.com:[ORG]/[REPO].git'

It would be nice if netlify lm:setup would disable lfs lock automatically since it is not supported by Netlify Large Media.

There is a discussion on Netlify Community about this.

@Saw-mon-and-Natalie
Copy link
Author

Only src/commands/lm/setup.ts needs to be changed by adding a 3rd task. I can create a pull request.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant