You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 25, 2023. It is now read-only.
If a submodule uses Git LFS, the GIT_LFS_ENABLED environment variable is used for the submodule clone. However, the GIT_LFS_FETCH_INCLUDE environment variable which determines the filetypes that will download the actual file instead of the Git LFS pointer is ignored for the submodule.
Again add the environment variables in the web UI.
See that both example.mov does not work while example.mp4 does even though both are Git LFS files on the submodule. The .mov file will be a Git LFS pointer like so:
$ cat example.mov
version https://git-lfs.github.com/spec/v1
oid sha256:6e26b46329f7e3ff304c592a93df60bb0f05ba9866373970d1b067bad6f5e49c
size 216396
Configuration
N/A
Expected behavior
The GIT_LFS_FETCH_INCLUDE environment variable will also apply to any submodules using Git LFS.
Describe the bug
If a submodule uses Git LFS, the
GIT_LFS_ENABLEDenvironment variable is used for the submodule clone. However, theGIT_LFS_FETCH_INCLUDEenvironment variable which determines the filetypes that will download the actual file instead of the Git LFS pointer is ignored for the submodule.To Reproduce
Steps to reproduce the behavior:
GIT_LFS_ENABLED=1andGIT_LFS_FETCH_INCLUDE=*.jpg,*.png,*.jpeg,*.svg,*.gif,*.pdf,*.mp4,*.bmp,*.webp,*.movto the web UIexample.movdoes not work whileexample.mp4does even though both are Git LFS files on the submodule. The.movfile will be a Git LFS pointer like so:Configuration
N/A
Expected behavior
The
GIT_LFS_FETCH_INCLUDEenvironment variable will also apply to any submodules using Git LFS.Build Output
N/A
Additional information
First reported here: https://answers.netlify.com/t/gitlfs-inside-submodule-not-working-correctly-for-some-file-types/49676