Re: [PATCH v1/RFC 1/1] 'git clone <url> C:\cygwin\home\USER\repo' is working (again)
- From
- Achim Gratz <stromeko@nexgo.de>
- Date
- Nov 27, 2018, 20:05 UTC
- Message-ID
- <87d0qqqo9s.fsf@Rainer.invalid>
- In-Reply-To
- <20181126173252.1558-1-tboegi@web.de>
tboegi@web.de writes:
> The solution is to implement has_dos_drive_prefix(), skip_dos_drive_prefix() > is_dir_sep(), offset_1st_component() and convert_slashes() for cygwin > in the same way as it is done in 'Git for Windows' in compat/mingw.[ch]
Please use the Cygwin API path conversion functions for C code and the cygpath program for shell code instead of trying to re-implement your own handling (which is prone to introduce subtle bugs or at least different heuristics from what cygwin itself uses).
https://cygwin.com/cygwin-api/cygwin-functions.html#func-cygwin-path
Regards, Achim.
-- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ SD adaptation for Waldorf microQ V2.22R2: http://Synth.Stromeko.net/Downloads.html#WaldorfSDada