[vtk-developers] Dashboard machines and git lfs

Bill Lorensen bill.lorensen at gmail.com
Thu Nov 30 13:40:47 EST 2017


David,

Thanks. I used your technique (slightly modified). Works great!

Bill


On Thu, Nov 30, 2017 at 8:56 AM, David Thompson
<david.thompson at kitware.com> wrote:
> Hi Bill,
>
>>> I'm really impressed with git lfs. Maybe I'll see if there is someway to use cake to detect if it is installed. Then we could skip tests or examples that reference lfs data.
>> We have been happy with it for CMB/SMTK. We use an empty file marked for storage with LFS (in .gitattributes) to detect whether the LFS smudge has been run. See lines 153-166 here:
>>
>> https://gitlab.kitware.com/cmb/smtk/blob/285a424a4b6c21c54aa314d6693dee39fb27d027/CMakeLists.txt#L166
>>
>> for the CMake test we use.
>
> One important detail: the "empty" file (named "${CMAKE_CURRENT_SOURCE_DIR}/data/smtk-data" in the link above) must actually contain at least 1 character (a newline in our case); LFS considers an empty file to be its own pointer (and so there won't be a difference between LFS installed or not). But a single newline character is enough to make LFS turn the file into a pointer file which CMake can then test to see if the LFS smudge occurred or not.
>
>         David



-- 
Unpaid intern in BillsBasement at noware dot com


More information about the vtk-developers mailing list