From 75d0b705f59ab0955fefdf0fb63de36385e3a2de Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Fri, 24 Feb 2017 17:47:37 +0100 Subject: [PATCH] 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 --- compat/mingw.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/compat/mingw.c b/compat/mingw.c index b5bc7c91ab..ceef246e19 100644 --- a/compat/mingw.c +++ b/compat/mingw.c @@ -374,9 +374,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);