Resolve build errors related to git lfs asset
rufuspollock opened this issue · comments
Yesterday i added an image file in assets folder and it seems to have broken the build:
2:01:55 PM: Error checking out branch: Downloading assets/Pasted image 20220313211349.png (589 KB)
Error downloading object: assets/Pasted image 20220313211349.png (1c32373): Smudge error: Error downloading assets/Pasted image 20220313211349.png (1c32373eb2b436d57147edc5e18f8d3b48c8f93cce3dbc07ef19b48886c0461b): batch request: missing protocol: ""
Acceptance
- Build working again
- BONUS: source of error identified so we avoid in future **FIXED. enable git lfs by setting env variable
GIT_LFS_ENABLED
totrue
(in UI)
Tasks
- Try to fix the error one way or the other
OK, my best guess is we just need to enable git lfs on netlify ...
https://answers.netlify.com/t/builds-fail-after-new-commit-to-git-lfs/1362/4
If cloning a repository using LFS, we recommend using an environment variable GIT_LFS_ENABLED in our documentation here 110. Quoting:
If you set a GIT_LFS_ENABLED variable, we’ll use git lfs clone to check out your repository — otherwise we just use git clone .
FIXED. See above.