Skip to content

Commit 21a499b

Browse files
committed
Revert "Updated Git cannot create a file or directory with a long path (markdown)"
This commit claimed that `cmd.exe` can work with long paths, but that is only the case when editing the registry, in ways that most users will never learn about. So let's avoid claiming that it works. This reverts commit 5a5d8d0. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 6bd107b commit 21a499b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Git-cannot-create-a-file-or-directory-with-a-long-path.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# The problem
22

3-
Windows does not properly support files and directories longer than 260 characters. This applies to Windows Explorer, and several other applications (including some IDEs, perl and tcl that come with Git for Windows).
3+
Windows does not properly support files and directories longer than 260 characters. This applies to Windows Explorer, `cmd.exe` and many other applications (including many IDEs as well as bash, perl and tcl that come with Git for Windows).
44

55
# Opt-In configuration
66

@@ -23,4 +23,4 @@ Git's source code itself does not have the limitation, it is Windows-only.
2323

2424
# Implementation details
2525

26-
Originally [introduced into Git for Windows 1.9.0](https://github.com/msysgit/git/pull/122), the idea to overcome the length limitation is to convert them into extended length paths (i.e. paths of the form `\\?\...`). Such paths are accepted by many of the Win32 API's functions accepting UTF-16 strings (many functions in the Win32 API are available as ASCII and UTF-16 functions, marked by an `A` and a `W` suffix, respectively) and are allowed to have a length up to 32,767 wide characters. See e.g. [this commit](https://github.com/git-for-windows/git/commit/38b94fe15fb60e3871a166eec8cfd4265fee727f) for more details.
26+
Originally [introduced into Git for Windows 1.9.0](https://github.com/msysgit/git/pull/122), the idea to overcome the length limitation is to convert them into UNC paths (i.e. network paths of the form `\\?\...`). Such paths are accepted by many of the Win32 API's functions accepting UTF-16 strings (many functions in the Win32 API are available as ASCII and UTF-16 functions, marked by an `A` and a `W` suffix, respectively) and are allowed to have a length up to 32,767 wide characters. See e.g. [this commit](https://github.com/git-for-windows/git/commit/38b94fe15fb60e3871a166eec8cfd4265fee727f) for more details.

0 commit comments

Comments
 (0)