We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1369010 commit d6c7ca3Copy full SHA for d6c7ca3
1 file changed
src/win32/posix_w32.c
@@ -648,6 +648,8 @@ int p_getcwd(char *buffer_out, size_t size)
648
if (!cwd)
649
return -1;
650
651
+ git_win32_path_remove_namespace(cwd, wcslen(cwd));
652
+
653
/* Convert the working directory back to UTF-8 */
654
if (git__utf16_to_8(buffer_out, size, cwd) < 0) {
655
DWORD code = GetLastError();
@@ -660,6 +662,7 @@ int p_getcwd(char *buffer_out, size_t size)
660
662
661
663
}
664
665
+ git_path_mkposix(buffer_out);
666
return 0;
667
668
0 commit comments