Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
win32(long path support): leave drive-less absolute paths intact
When trying to ensure that long paths are handled correctly, we first normalize absolute paths when we encounter them. However, if the path was a so-called "drive-less" absolute path, i.e. if it was relative to the current drive but did start with a directory separator, we would want even the normalized output to be such a drive-less absolute path. Let's do that, being careful to still include the drive prefix when we need to go through the `\\?\` dance (because there, the drive prefix is absolutely required). This fixes git-for-windows#4586. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
- Loading branch information