-
Notifications
You must be signed in to change notification settings - Fork 196
GIT_LFS_FETCH_INCLUDE
environment variable is not applied to clones of LFS files in submodules
#727
Comments
Friendly +1 on this bug. Would be awesome to get this submodule + gitLFS implementation working correctly |
Any update on when this bug might be fixed or investigated? |
Hi, @hayden2114. The investigation phase is complete as the issue is well understood and the responsible code is known. I don't have an official ETA for a fix, though. I want to be transparent as I can. I can give a best guess about a timeline and, before I do so, I want to be clear I'm not trying to dismiss you. I only want to be clear about the timeline for a fix so you don't delay a decision for a change that will not come soon. I would say that it is unlikely to be fixed in the next three months. Whether or not it would be fixed in the quarter after that is also not guaranteed. As to why I say this, it is because this is a relatively recent discovery and one which so far only one person has reported. As there are other issues impacting a larger number of people, those issues are currently being prioritized over this one. It isn't that this isn't important - only that when prioritizing the issues the impact of this issue is smaller relative to other unresolved bugs. I hope this makes the timeline for a fix more clear. |
@overlordofmu thank you for the reply. That timeline is obviously way longer than I was expecting, which is disappointing, but I do greatly appreciate your honesty as it helps me plan the best course of action for my companies current and future projects. |
@overlordofmu One thought I just had was that it may take 6 months for Netlify devs to get around to fixing the bug in the code but a temporary and much simpler fix to the problem would be to extend the default GIT_LFS_FETCH_INCLUDE statement to If this would be considered by the Netlify team that would be greatly appreciated. |
Can #371 be considered while this bug is being resolved? |
Describe the bug
If a submodule uses Git LFS, the
GIT_LFS_ENABLED
environment variable is used for the submodule clone. However, theGIT_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.To Reproduce
Steps to reproduce the behavior:
GIT_LFS_ENABLED=1
andGIT_LFS_FETCH_INCLUDE=*.jpg,*.png,*.jpeg,*.svg,*.gif,*.pdf,*.mp4,*.bmp,*.webp,*.mov
to the web UIexample.mov
does not work whileexample.mp4
does even though both are Git LFS files on the submodule. The.mov
file will be a Git LFS pointer like so:Configuration
N/A
Expected behavior
The
GIT_LFS_FETCH_INCLUDE
environment 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
The text was updated successfully, but these errors were encountered: