cqframework/ecqm-content-qicore-2023

filenames too long for git checkout

p9g opened this issue · 1 comments

p9g commented

I forked this repo and tried to clone it, but had errors.
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.

C:\p\ecqm-content-qicore-2023>git checkout master
error: cannot stat 'bundles/measure/ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR/ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR-files/ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR.cql': Filename too long
error: cannot stat 'bundles/measure/ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR/ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR-files/ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR.json': Filename too long
error: cannot stat 'bundles/measure/ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR/ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR-files/library-deps-ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR-bundle.json': Filename too long
error: cannot stat 'bundles/measure/ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR/ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR-files/valuesets-ChildandAdolescentMajorDepressiveDisorderMDDSuicideRiskAssessmentFHIR-bundle.json': Filename too long

p9g commented

I did git config --system core.longpaths true then tried git clone again and there were no more errors.

https://stackoverflow.com/questions/22575662/filename-too-long-in-git-for-windows

I previously had the registry key set as described in https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation?tabs=registry#enable-long-paths-in-windows-10-version-1607-and-later