Regression was introduced in commit 1cadad6 when mingw_offset_1st_component was moved from mingw.c, which is included by msvc.c to a separate file. Resolved correctly any more, because the *nix variant of offset_1st_component is used instead of the Win32 specific version. (Merged by Junio C Hamano - gitster - in commit 70542df, ) MSVC: include compat/win32/path-utils.h for MSVC, too, for real_path()Ī path such as ' c:/somepath/submodule/./.git/modules/submodule' wasn't See commit 22c3634 () by Sven Strickroth ( apotek). Note: Git 2.22 (Q2 2019) further improves the command, as an earlier update for MinGW and Cygwin accidentally broke MSVC build, which has been fixed. In the same way as it is done in 'Git for Windows' in compat/mingw.Įxtract the needed code into compat/win32/path-utils. The solution is to implement has_dos_drive_prefix(), skip_dos_drive_prefix() is_dir_sep(), offset_1st_component() and convert_slashes() for cygwin (which is an error message similar to what the OP mentions) "git clone C:\cygwin\home\USER\repo" fails like this:įatal: Invalid path '/home/USER/repo/C:\cygwin\home\USER\repo' The cygwin layer "knows" that " C:\cygwin" is an absolute path, but the new string operation does not. The old (and non-thread-save) OS calls chdir()/ pwd() had been replaced by a string operation. Unfortunately this isn't thread-safe as chdir() affects a process as a whole. The current implementation of real_path uses chdir() in order to resolve symlinks. (See " How to git grep the main repository and all its submodules?" for more on that original commit) 2012, " real_path: resolve symlinks by hand". (Merged by Junio C Hamano - gitster - in commit 25d90d1, ) git clone C:\cygwin\home\USER\repo is working (again)Ī regression for cygwin users was introduced with commit 05b458c, Git v2.12.0-rc0, Dec. See commit 1cadad6 () by Torsten Bögershausen ( tboegi). Try the same command with Git 2.21 (Q1 2019) installed.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |