mirror of
https://github.com/git/git.git
synced 2026-01-26 18:44:50 +00:00
mingw: remove 248-char limit when creating directories
It is true that Windows XP could not create directories using paths longer than 248 chars. But ever since Vista, it is possible. And we stopped supporting earlier Windows versions starting with Git for Windows v2.10.1, i.e. a few versions ago... Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
@@ -496,9 +496,7 @@ int mingw_mkdir(const char *path, int mode)
|
||||
{
|
||||
int ret;
|
||||
wchar_t wpath[MAX_LONG_PATH];
|
||||
/* CreateDirectoryW path limit is 248 (MAX_PATH - 8.3 file name) */
|
||||
if (xutftowcs_path_ex(wpath, path, MAX_LONG_PATH, -1, 248,
|
||||
core_long_paths) < 0)
|
||||
if (xutftowcs_long_path(wpath, path) < 0)
|
||||
return -1;
|
||||
|
||||
ret = _wmkdir(wpath);
|
||||
|
||||
Reference in New Issue
Block a user