cqframework / ecqm-content-qicore-2023

FHIR-based AU 2023 Measures
Creative Commons Zero v1.0 Universal
2 stars 5 forks source link

filenames too long for git checkout #8

Closed p9g closed 10 months ago

p9g commented 11 months ago

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 10 months ago

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