threads / discuss / 35812

"Sparse checkout leaves no entry on working directory" all the time on Windows 7 on Git 1.8.5.2.msysgit.0

Subject: "Sparse checkout leaves no entry on working directory" all the time on Windows 7 on Git 1.8.5.2.msysgit.0

## tl;dr

4 messages between Feb 6, 2014 and Feb 6, 2014.

replies: 3people: 3as markdown or json

konstunn@ngs.ru· Feb 6, 2014, 11:54 UTC · lore
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

Johannes Sixt· Feb 6, 2014, 13:20 UTC · re: konstunn@ngs.ru · lore

Re: "Sparse checkout leaves no entry on working directory" all the time on Windows 7 on Git 1.8.5.2.msysgit.0

Am 2/6/2014 12:54, schrieb konstunn@ngs.ru:
Show 6 quoted 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
Duy Nguyen· Feb 6, 2014, 13:30 UTC · re: Johannes Sixt · lore

Re: "Sparse checkout leaves no entry on working directory" all the time on Windows 7 on Git 1.8.5.2.msysgit.0

On Thu, Feb 6, 2014 at 8:20 PM, Johannes Sixt <j.sixt@viscovery.net> wrote:
Show 10 quoted lines
> Am 2/6/2014 12:54, schrieb konstunn@ngs.ru:
>> 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.

-- 
Duy
Constantine Gorbunov· Feb 6, 2014, 19:56 UTC · re: Johannes Sixt · lore

Re:

Johannes Sixt <j.sixt <at> viscovery.net> writes:
Show 12 quoted lines
> 
> Am 2/6/2014 12:54, schrieb konstunn <at> ngs.ru:
> > 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.
> 

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.

← back to recent threads