DataConservancy / dcs-packaging-osf

Open Science Framework packaging model, client, and utilities.
2 stars 3 forks source link

Long file names on Windows causes failed checkout #9

Open birkland opened 7 years ago

birkland commented 7 years ago

Git checkout fails:

C:\Users\Dev\projects\dcs-packaging-osf>git checkout
fatal: cannot create directory at 'osf-client/osf-client-integration/src/test/resources/json/NodeTest/testGetNodeObjectResolution/nodes/v8x57/files/osfstorage/5731e69ecfa27c0047716290/5731e7becfa27c0045d051df/5731e7c3cfa27c0045d051e1/versions/1': Filename too long

Tried enabling long file paths, but that didn't immediately work.

From here it seems like long paths are generally not supported by most tools (including explorer). BUT it appears that git has support for long paths, but is not enabled by default. Do:

git clone -c core.longpaths=true <repo-url>

.. and that worked for me! I have no idea if the group policy from above was necessary.