"Sparse checkout leaves no entry on working directory" all the time on Windows 7 on Git 1.8.5.2.msysgit.0
Greetings.
I've tried to perform a single simple task to fetch data from the linux-next integration testing tree repo and sparse checkout the "drivers/staging/usbip/" directory.
I managed to perform it successfully under Linux with Git 1.7.1.
But I always failed to perform checkout under Windows 7 with Git 1.8.5.2.msysgit.0 facing the following error:
"Sparse checkout leaves no entry on working directory".
Unfortunately, I haven't tried that under Linux with Git 1.8.5.2. So, don't know if there is the same problem.
However I typed the checkout directory in file .git/info/sparse-checkout by using different formats with and without the leading and the trailing slashes, with and without asterisk after trailing slash, having tried all the possible combinations, but, all the same, nevertheless, the error occured.
On Linux I stored the checkout directory in sparse-checkout file in the following way:
"drivers/staging/usbip/". And everything was fine under Linux, but not under Windows.
However, I don't, of course, if the format of this directory really matters.
May be the Git install on Windows 7 specific configuration is the reason?
Could you, please, tell me, what might be wrong? Am I doing something wrong or it's a bug?
Best Regards,
Constantine Gorbunov
Am 2/6/2014 12:54, schrieb [email protected]:
Quoted 6 lines
However I typed the checkout directory in file ..git/info/sparse-checkout by using different formats with and without the leading and the trailing slashes, with and without asterisk after trailing slash, having tried all the possible combinations, but, all the same, nevertheless, the error occured.
Make sure that you do not use CRLF line terminators in the sparse-checkout file.
-- Hannes
Quoted 10 lines · Johannes Sixt
Am 2/6/2014 12:54, schrieb [email protected]:
Quoted 6 lines
However I typed the checkout directory in file ..git/info/sparse-checkout by using different formats with and without the leading and the trailing slashes, with and without asterisk after trailing slash, having tried all the possible combinations, but, all the same, nevertheless, the error occured.
Make sure that you do not use CRLF line terminators in the sparse-checkout file.
I suspected the same thing. But it looks like we do trim CRLF. Another option is the file is encoded in utf-16 or some encoding which ascii is not a subset of.
Signature · 1 line
Duy
Re:
In reply to Johannes SixtQuoted 9 lines · Johannes Sixt <j.sixt <at> viscovery.net> writes:
Am 2/6/2014 12:54, schrieb konstunn <at> ngs.ru:
Quoted 6 lines
However I typed the checkout directory in file ..git/info/sparse-checkout by using different formats with and without the leading and the trailing slashes, with and without asterisk after trailing slash, having tried all the possible combinations, but, all the same, nevertheless, the error occured.
Quoted 3 lines
Make sure that you do not use CRLF line terminators in the sparse-checkout file.
This is it. Right you are. I've just tried to edit "manually" with notepad .git\info\sparse-checkout and found out that there really was a CRLF line terminator. After I removed it I managed to succeed in my sparse checkout.