Skip to content
This repository was archived by the owner on Nov 13, 2019. It is now read-only.
This repository was archived by the owner on Nov 13, 2019. It is now read-only.

Long file names on Windows causes failed checkout #9

@birkland

Description

@birkland

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions