8000 Support `core.longpaths` on Windows · Issue #3053 · libgit2/libgit2 · GitHub
[go: up one dir, main page]

Skip to content
Support core.longpaths on Windows #3053
Closed
@ethomson

Description

@ethomson

At some point we need to support the core.longpaths configuration setting and deal with Windows paths that are longer than MAX_PATH.

  • Change all the UTF8 to UTF16 code to not assume MAX_PATH
  • Change the checkout path sanitizer to (optionally) allow for long paths
  • Tests tests tests tests tests

Questions:

  • Do long paths work over SMB?

We will need copious tests here:

  • Test that we can create a folder whose absolute path would be longer than 260 characters
  • Test that a file can be created whose absolute path would be longer than 260 characters (inside a directory that is not excessively long)
  • Test a filename (just the name portion) that is itself longer than 260 characters
  • Ensure that we can't suddenly write long references

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0